@@ -11,6 +11,6 @@ |
||
11 | 11 | public function index() |
12 | 12 | { |
13 | 13 | $task_events = TaskEvent::all(); |
14 | - return view('timeline',['task_events' => $task_events]); |
|
14 | + return view('timeline', ['task_events' => $task_events]); |
|
15 | 15 | } |
16 | 16 | } |
@@ -19,9 +19,9 @@ |
||
19 | 19 | */ |
20 | 20 | public function boot() |
21 | 21 | { |
22 | - View::composer('*', function ($view) { |
|
23 | - if (Auth::user()){ |
|
24 | - $view->with('user',Auth::user()); |
|
22 | + View::composer('*', function($view) { |
|
23 | + if (Auth::user()) { |
|
24 | + $view->with('user', Auth::user()); |
|
25 | 25 | } else { |
26 | 26 | // NullObject |
27 | 27 | $view->with('user', new GuestUser()); |