Skip to content

Commit eb91c58

Browse files
committed
Laravel 5.4 version
Add laravel 5.4 scaffold, add passport, Laravel API tools and some other goodies.
1 parent 619ac5d commit eb91c58

File tree

174 files changed

+8864
-3643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+8864
-3643
lines changed

.env.example

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
APP_ENV=local
22
APP_DEBUG=true
3-
APP_KEY=5vU3pFiU7oEm9uIiLuYmTRW87qxVR10b
3+
APP_KEY=base64:JqyMTmt5qr1CW6BH+GG+4iKfU4RiNjZTLy33TdTT7+4=
44

55
DB_HOST=localhost
66
DB_DATABASE=laravel_api
@@ -16,9 +16,4 @@ MAIL_HOST=mailtrap.io
1616
MAIL_PORT=2525
1717
MAIL_USERNAME=null
1818
MAIL_PASSWORD=null
19-
MAIL_ENCRYPTION=null
20-
21-
API_PREFIX=api
22-
API_VERSION=v1
23-
API_NAME="Laravel API"
24-
API_DEBUG=true
19+
MAIL_ENCRYPTION=null

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
Homestead.yaml
55
Homestead.json
66
.env
7-
composer.lock
7+
yarn.lock
8+
/public/css/
9+
/public/js/

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
sudo: false
22
language: php
33
php:
4-
- 5.5
54
- 5.6
65
- hhvm
76
- 7

Homestead.yaml.example

Lines changed: 0 additions & 37 deletions
This file was deleted.

Vagrantfile

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/Auth/EloquentClientResolver.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

app/Auth/EloquentUserResolver.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

app/Auth/PasswordGrantVerifier.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

app/Console/Commands/Inspire.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

app/Console/Commands/InstallApp.php

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
3+
namespace App\Console\Commands;
4+
5+
use App\Services\Installation\AppInstallationService;
6+
use Illuminate\Console\Command;
7+
8+
class InstallApp extends Command
9+
{
10+
/**
11+
* The name and signature of the console command.
12+
*
13+
* @var string
14+
*/
15+
protected $signature = 'app:install';
16+
17+
/**
18+
* The console command description.
19+
*
20+
* @var string
21+
*/
22+
protected $description = 'Install Base Application';
23+
24+
/**
25+
* Create a new command instance.
26+
*
27+
* @return void
28+
*/
29+
public function __construct()
30+
{
31+
parent::__construct();
32+
}
33+
34+
/**
35+
* Execute the console command.
36+
*
37+
* @return mixed
38+
*/
39+
public function handle()
40+
{
41+
$service = app(AppInstallationService::class);
42+
$this->info('Welcome to the Installer, please provide the following information');
43+
$name = $this->ask('What is the Admininstrator\'s name?');
44+
$email = $this->ask('What is the Admininstrator\'s email?');
45+
$password = $this->ask('What is the Admininstrator\'s password?');
46+
$this->info('Installing the app');
47+
$service->installApp([
48+
'name' => $name,
49+
'email' => $email,
50+
'password' => $password,
51+
'password_confirmation' => $password
52+
]);
53+
$this->info('All Done');
54+
}
55+
}

app/Console/Kernel.php

100644100755
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Console;
44

5+
use App\Console\Commands\InstallApp;
56
use Illuminate\Console\Scheduling\Schedule;
67
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
78

@@ -13,18 +14,28 @@ class Kernel extends ConsoleKernel
1314
* @var array
1415
*/
1516
protected $commands = [
16-
\App\Console\Commands\Inspire::class,
17+
InstallApp::class
1718
];
1819

1920
/**
2021
* Define the application's command schedule.
2122
*
22-
* @param \Illuminate\Console\Scheduling\Schedule $schedule
23+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2324
* @return void
2425
*/
2526
protected function schedule(Schedule $schedule)
2627
{
27-
$schedule->command('inspire')
28-
->hourly();
28+
// $schedule->command('inspire')
29+
// ->hourly();
30+
}
31+
32+
/**
33+
* Register the Closure based commands for the application.
34+
*
35+
* @return void
36+
*/
37+
protected function commands()
38+
{
39+
require base_path('routes/console.php');
2940
}
3041
}

app/Contracts/.gitkeep

Whitespace-only changes.

app/Contracts/ClientResolverInterface.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)