mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
Pull in updated init.sh and remove the space after function in the routes files
This commit is contained in:
parent
6985cc501c
commit
6ee1313bb7
4 changed files with 9 additions and 3 deletions
6
init.sh
6
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
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue