Pull in updated init.sh and remove the space after function in the routes files

This commit is contained in:
Kevin MacMartin 2017-01-26 20:07:54 -05:00
parent 6985cc501c
commit 6ee1313bb7
4 changed files with 9 additions and 3 deletions

View file

@ -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

View file

@ -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();
});

View file

@ -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;
});

View file

@ -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');