@@ -9,10 +9,10 @@ discard block |
||
9 | 9 | { |
10 | 10 | public function boot(): void |
11 | 11 | { |
12 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'chief'); |
|
12 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'chief'); |
|
13 | 13 | |
14 | 14 | // Fragment components |
15 | - $this->app['view']->addNamespace('chief-fragments', __DIR__ . '/../../src/Fragments/resources'); |
|
15 | + $this->app['view']->addNamespace('chief-fragments', __DIR__.'/../../src/Fragments/resources'); |
|
16 | 16 | |
17 | 17 | Blade::componentNamespace('Thinktomorrow\\Chief\\App\\View\\Components', 'chief'); |
18 | 18 | |
@@ -37,19 +37,19 @@ discard block |
||
37 | 37 | Blade::component('chief-table::components.data', 'chief::table.data'); |
38 | 38 | |
39 | 39 | // Chief directives |
40 | - Blade::directive('adminRoute', function ($expression) { |
|
40 | + Blade::directive('adminRoute', function($expression) { |
|
41 | 41 | return "<?php echo \$manager->route({$expression}); ?>"; |
42 | 42 | }); |
43 | 43 | |
44 | - Blade::directive('adminCan', function ($expression) { |
|
44 | + Blade::directive('adminCan', function($expression) { |
|
45 | 45 | return "<?php if (isset(\$manager) && \$manager->can({$expression})) { ?>"; |
46 | 46 | }); |
47 | 47 | |
48 | - Blade::directive('elseAdminCan', function () { |
|
48 | + Blade::directive('elseAdminCan', function() { |
|
49 | 49 | return '<?php } else { ?>'; |
50 | 50 | }); |
51 | 51 | |
52 | - Blade::directive('endAdminCan', function () { |
|
52 | + Blade::directive('endAdminCan', function() { |
|
53 | 53 | return '<?php } ?>'; |
54 | 54 | }); |
55 | 55 |