@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | protected function mapWebRoutes() |
| 53 | 53 | { |
| 54 | 54 | Route::middleware('web') |
| 55 | - ->namespace($this->namespace) |
|
| 56 | - ->group(base_path('routes/web.php')); |
|
| 55 | + ->namespace($this->namespace) |
|
| 56 | + ->group(base_path('routes/web.php')); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | protected function mapApiRoutes() |
| 67 | 67 | { |
| 68 | 68 | Route::prefix('api') |
| 69 | - ->middleware('api') |
|
| 70 | - ->namespace($this->namespace) |
|
| 71 | - ->group(base_path('routes/api.php')); |
|
| 69 | + ->middleware('api') |
|
| 70 | + ->namespace($this->namespace) |
|
| 71 | + ->group(base_path('routes/api.php')); |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -46,10 +46,10 @@ |
||
| 46 | 46 | $headers = ['Key', 'Value']; |
| 47 | 47 | |
| 48 | 48 | $fields = [ |
| 49 | - ['Name:', $task->name], |
|
| 49 | + ['Name:', $task->name], |
|
| 50 | 50 | ['Completed:', $task->completed ? 'Yes' : 'No'], |
| 51 | - ['User id:', $task->user_id], |
|
| 52 | - ['User name:', $user->name], |
|
| 51 | + ['User id:', $task->user_id], |
|
| 52 | + ['User name:', $user->name], |
|
| 53 | 53 | ]; |
| 54 | 54 | |
| 55 | 55 | $this->table($headers, $fields); |
@@ -20,12 +20,12 @@ |
||
| 20 | 20 | public function boot() |
| 21 | 21 | { |
| 22 | 22 | View::composer('*', function ($view) { |
| 23 | - if (Auth::user()){ |
|
| 24 | - $view->with('user',Auth::user()); |
|
| 25 | - } else { |
|
| 26 | - // NullObject |
|
| 27 | - $view->with('user', new GuestUser()); |
|
| 28 | - } |
|
| 23 | + if (Auth::user()){ |
|
| 24 | + $view->with('user',Auth::user()); |
|
| 25 | + } else { |
|
| 26 | + // NullObject |
|
| 27 | + $view->with('user', new GuestUser()); |
|
| 28 | + } |
|
| 29 | 29 | }); |
| 30 | 30 | |
| 31 | 31 | Task::observe(TaskObserver::class); |