diff --git a/init.sh b/init.sh index abba2c5..924e6fa 100755 --- a/init.sh +++ b/init.sh @@ -68,6 +68,12 @@ trap 'error "script killed"' SIGINT SIGQUIT msg "Running: ${c_m}composer installl --no-dev" composer install --no-interaction --no-dev || error "${c_m}composer install --no-interaction --no-dev$c_w exited with an error status" +msg "Running: ${c_m}php artisan route:clear" +php artisan route:clear + +msg "Running: ${c_m}php artisan view:clear" +php artisan view:clear + egrep -q '^CACHE_BUST=' .env || { msg "Adding the ${c_y}CACHE_BUST$c_w variable" printf '\n%s\n' 'CACHE_BUST=' >> .env diff --git a/routes/api.php b/routes/api.php index c641ca5..06ca778 100644 --- a/routes/api.php +++ b/routes/api.php @@ -13,6 +13,6 @@ use Illuminate\Http\Request; | */ -Route::middleware('auth:api')->get('/user', function (Request $request) { +Route::middleware('auth:api')->get('/user', function(Request $request) { return $request->user(); }); diff --git a/routes/channels.php b/routes/channels.php index f16a20b..1640058 100644 --- a/routes/channels.php +++ b/routes/channels.php @@ -11,6 +11,6 @@ | */ -Broadcast::channel('App.User.{id}', function ($user, $id) { +Broadcast::channel('App.User.{id}', function($user, $id) { return (int) $user->id === (int) $id; }); diff --git a/routes/console.php b/routes/console.php index 75dd0cd..36ee8fe 100644 --- a/routes/console.php +++ b/routes/console.php @@ -13,6 +13,6 @@ use Illuminate\Foundation\Inspiring; | */ -Artisan::command('inspire', function () { +Artisan::command('inspire', function() { $this->comment(Inspiring::quote()); })->describe('Display an inspiring quote');