@@ -128,7 +128,7 @@ |
||
| 128 | 128 | |
| 129 | 129 | 'cookie' => env( |
| 130 | 130 | 'SESSION_COOKIE', |
| 131 | - Str::slug(env('APP_NAME', 'laravel'), '_').'_session' |
|
| 131 | + Str::slug(env('APP_NAME', 'laravel'), '_') . '_session' |
|
| 132 | 132 | ), |
| 133 | 133 | |
| 134 | 134 | /* |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | | |
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | -if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { |
|
| 19 | +if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) { |
|
| 20 | 20 | require $maintenance; |
| 21 | 21 | } |
| 22 | 22 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | | |
| 32 | 32 | */ |
| 33 | 33 | |
| 34 | -require __DIR__.'/../vendor/autoload.php'; |
|
| 34 | +require __DIR__ . '/../vendor/autoload.php'; |
|
| 35 | 35 | |
| 36 | 36 | /* |
| 37 | 37 | |-------------------------------------------------------------------------- |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | | |
| 45 | 45 | */ |
| 46 | 46 | |
| 47 | -$app = require_once __DIR__.'/../bootstrap/app.php'; |
|
| 47 | +$app = require_once __DIR__ . '/../bootstrap/app.php'; |
|
| 48 | 48 | |
| 49 | 49 | $kernel = $app->make(Kernel::class); |
| 50 | 50 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function unverified() |
| 35 | 35 | { |
| 36 | - return $this->state(function (array $attributes) { |
|
| 36 | + return $this->state(function(array $attributes) { |
|
| 37 | 37 | return [ |
| 38 | 38 | 'email_verified_at' => null, |
| 39 | 39 | ]; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('email')->index(); |
| 18 | 18 | $table->string('token'); |
| 19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('failed_jobs', function (Blueprint $table) { |
|
| 16 | + Schema::create('failed_jobs', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('uuid')->unique(); |
| 19 | 19 | $table->text('connection'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('personal_access_tokens', function (Blueprint $table) { |
|
| 16 | + Schema::create('personal_access_tokens', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->morphs('tokenable'); |
| 19 | 19 | $table->string('name'); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | $this->configureRateLimiting(); |
| 30 | 30 | |
| 31 | - $this->routes(function () { |
|
| 31 | + $this->routes(function() { |
|
| 32 | 32 | Route::middleware('api') |
| 33 | 33 | ->prefix('api') |
| 34 | 34 | ->group(base_path('routes/api.php')); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | protected function configureRateLimiting() |
| 47 | 47 | { |
| 48 | - RateLimiter::for('api', function (Request $request) { |
|
| 48 | + RateLimiter::for ('api', function(Request $request) { |
|
| 49 | 49 | return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); |
| 50 | 50 | }); |
| 51 | 51 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | protected function commands() |
| 27 | 27 | { |
| 28 | - $this->load(__DIR__.'/Commands'); |
|
| 28 | + $this->load(__DIR__ . '/Commands'); |
|
| 29 | 29 | |
| 30 | 30 | require base_path('routes/console.php'); |
| 31 | 31 | } |