1 | <?php |
||
2 | |||
3 | namespace App\Providers; |
||
4 | |||
5 | use Illuminate\Support\Facades\View; |
||
6 | use Illuminate\Support\ServiceProvider; |
||
7 | |||
8 | class ComposerServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Register bindings in the container. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function boot() |
||
16 | { |
||
17 | View::composer( |
||
18 | [ |
||
19 | '*', |
||
20 | ], |
||
21 | 'App\Http\ViewComposers\ThemeComposer' |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
22 | ); |
||
23 | |||
24 | View::composer( |
||
25 | [ |
||
26 | '*', |
||
27 | ], |
||
28 | 'App\Http\ViewComposers\UsersComposer' |
||
29 | ); |
||
30 | |||
31 | View::composer( |
||
32 | [ |
||
33 | '*', |
||
34 | ], |
||
35 | 'App\Http\Controllers\TasksController@getAllTasks' |
||
36 | ); |
||
37 | |||
38 | View::composer( |
||
39 | [ |
||
40 | '*', |
||
41 | ], |
||
42 | 'App\Http\Controllers\TasksController@getCompleteTasks' |
||
43 | ); |
||
44 | |||
45 | View::composer( |
||
46 | [ |
||
47 | '*', |
||
48 | ], |
||
49 | 'App\Http\Controllers\TasksController@getIncompleteTasks' |
||
50 | ); |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Register the service provider. |
||
55 | * |
||
56 | * @return void |
||
57 | */ |
||
58 | public function register() |
||
59 | { |
||
60 | // |
||
61 | } |
||
62 | } |
||
63 |