@@ -5,25 +5,25 @@ |
||
| 5 | 5 | |
| 6 | 6 | class Kernel extends ConsoleKernel { |
| 7 | 7 | |
| 8 | - /** |
|
| 9 | - * The Artisan commands provided by your application. |
|
| 10 | - * |
|
| 11 | - * @var array |
|
| 12 | - */ |
|
| 13 | - protected $commands = [ |
|
| 14 | - 'App\Console\Commands\Inspire', |
|
| 15 | - ]; |
|
| 8 | + /** |
|
| 9 | + * The Artisan commands provided by your application. |
|
| 10 | + * |
|
| 11 | + * @var array |
|
| 12 | + */ |
|
| 13 | + protected $commands = [ |
|
| 14 | + 'App\Console\Commands\Inspire', |
|
| 15 | + ]; |
|
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * Define the application's command schedule. |
|
| 19 | - * |
|
| 20 | - * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
| 21 | - * @return void |
|
| 22 | - */ |
|
| 23 | - protected function schedule(Schedule $schedule) |
|
| 24 | - { |
|
| 25 | - $schedule->command('inspire') |
|
| 26 | - ->hourly(); |
|
| 27 | - } |
|
| 17 | + /** |
|
| 18 | + * Define the application's command schedule. |
|
| 19 | + * |
|
| 20 | + * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 23 | + protected function schedule(Schedule $schedule) |
|
| 24 | + { |
|
| 25 | + $schedule->command('inspire') |
|
| 26 | + ->hourly(); |
|
| 27 | + } |
|
| 28 | 28 | |
| 29 | 29 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | $reminder = app('sentinel.reminders')->create($event->user); |
| 13 | 13 | $token = $reminder->code; |
| 14 | 14 | $view = config('auth.password.email'); |
| 15 | - app('mailer')->send($view, compact('user', 'token'), function (Message $m) use ($user, $token) { |
|
| 15 | + app('mailer')->send($view, compact('user', 'token'), function(Message $m) use ($user, $token) { |
|
| 16 | 16 | $m->to($user->email)->subject($this->getPasswordResetEmailSubject()); |
| 17 | 17 | }); |
| 18 | 18 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | | database. Just tell the factory how a default model should look. |
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | -$factory->define(\App\Models\User::class, function (\Faker\Generator $faker) { |
|
| 13 | +$factory->define(\App\Models\User::class, function(\Faker\Generator $faker) { |
|
| 14 | 14 | return [ |
| 15 | 15 | 'name' => $faker->name, |
| 16 | 16 | 'email' => $faker->email, |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('users', function (Blueprint $table) { |
|
| 15 | + Schema::create('users', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name')->nullable(); |
| 18 | 18 | $table->string('email')->unique()->nullable(); // Unique constraints can be Nullable, its SQL-92 compatible |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('nested_entities', function (Blueprint $table) { |
|
| 15 | + Schema::create('nested_entities', function(Blueprint $table) { |
|
| 16 | 16 | $table->engine = 'InnoDb'; |
| 17 | 17 | |
| 18 | 18 | $table->mediumInteger('id', true, true); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('translation_categories', function (Blueprint $table) { |
|
| 15 | + Schema::create('translation_categories', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name')->unique(); |
| 18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('translation_messages', function (Blueprint $table) { |
|
| 15 | + Schema::create('translation_messages', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('key'); |
| 18 | 18 | $table->integer('category_id', false, true); |
@@ -29,14 +29,14 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function up() |
| 31 | 31 | { |
| 32 | - Schema::table('users', function (Blueprint $table) { |
|
| 32 | + Schema::table('users', function(Blueprint $table) { |
|
| 33 | 33 | $table->engine = 'InnoDB'; |
| 34 | 34 | $table->text('permissions')->nullable()->after('password'); |
| 35 | 35 | $table->timestamp('last_login')->nullable()->after('remember_token'); |
| 36 | 36 | $table->dropColumn('remember_token'); |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | - Schema::create('activations', function (Blueprint $table) { |
|
| 39 | + Schema::create('activations', function(Blueprint $table) { |
|
| 40 | 40 | $table->engine = 'InnoDB'; |
| 41 | 41 | $table->increments('id'); |
| 42 | 42 | $table->unsignedInteger('user_id'); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade'); |
| 49 | 49 | }); |
| 50 | 50 | |
| 51 | - Schema::create('persistences', function (Blueprint $table) { |
|
| 51 | + Schema::create('persistences', function(Blueprint $table) { |
|
| 52 | 52 | $table->engine = 'InnoDB'; |
| 53 | 53 | $table->increments('id'); |
| 54 | 54 | $table->unsignedInteger('user_id'); |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade'); |
| 59 | 59 | }); |
| 60 | 60 | |
| 61 | - Schema::create('reminders', function (Blueprint $table) { |
|
| 61 | + Schema::create('reminders', function(Blueprint $table) { |
|
| 62 | 62 | $table->increments('id'); |
| 63 | 63 | $table->unsignedInteger('user_id'); |
| 64 | 64 | $table->string('code'); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade'); |
| 70 | 70 | }); |
| 71 | 71 | |
| 72 | - Schema::create('roles', function (Blueprint $table) { |
|
| 72 | + Schema::create('roles', function(Blueprint $table) { |
|
| 73 | 73 | $table->engine = 'InnoDB'; |
| 74 | 74 | $table->increments('id'); |
| 75 | 75 | $table->string('slug')->unique(); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $table->timestamps(); |
| 79 | 79 | }); |
| 80 | 80 | |
| 81 | - Schema::create('role_users', function (Blueprint $table) { |
|
| 81 | + Schema::create('role_users', function(Blueprint $table) { |
|
| 82 | 82 | $table->engine = 'InnoDB'; |
| 83 | 83 | $table->unsignedInteger('user_id'); |
| 84 | 84 | $table->unsignedInteger('role_id'); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $table->foreign('role_id')->references('id')->on('roles')->onUpdate('cascade')->onDelete('cascade'); |
| 90 | 90 | }); |
| 91 | 91 | |
| 92 | - Schema::create('throttle', function (Blueprint $table) { |
|
| 92 | + Schema::create('throttle', function(Blueprint $table) { |
|
| 93 | 93 | $table->engine = 'InnoDB'; |
| 94 | 94 | $table->increments('id'); |
| 95 | 95 | $table->unsignedInteger('user_id')->nullable(); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | public function down() |
| 110 | 110 | { |
| 111 | - Schema::table('users', function (Blueprint $table) { |
|
| 111 | + Schema::table('users', function(Blueprint $table) { |
|
| 112 | 112 | $table->dropColumn(['permissions', 'last_login']); |
| 113 | 113 | $table->rememberToken(); |
| 114 | 114 | }); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | $reminder = app('sentinel.reminders')->create($event->user); |
| 13 | 13 | $token = $reminder->code; |
| 14 | 14 | $view = config('auth.password.email'); |
| 15 | - app('mailer')->send($view, compact('user', 'token'), function (Message $m) use ($user, $token) { |
|
| 15 | + app('mailer')->send($view, compact('user', 'token'), function(Message $m) use ($user, $token) { |
|
| 16 | 16 | $m->to($user->email)->subject($this->getPasswordResetEmailSubject()); |
| 17 | 17 | }); |
| 18 | 18 | } |