@@ -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 | |
@@ -31,19 +31,19 @@ discard block |
||
| 31 | 31 | Blade::component('chief::templates.mail.template', 'chief::mail.template'); |
| 32 | 32 | |
| 33 | 33 | // Chief directives |
| 34 | - Blade::directive('adminRoute', function ($expression) { |
|
| 34 | + Blade::directive('adminRoute', function($expression) { |
|
| 35 | 35 | return "<?php echo \$manager->route({$expression}); ?>"; |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | - Blade::directive('adminCan', function ($expression) { |
|
| 38 | + Blade::directive('adminCan', function($expression) { |
|
| 39 | 39 | return "<?php if (isset(\$manager) && \$manager->can({$expression})) { ?>"; |
| 40 | 40 | }); |
| 41 | 41 | |
| 42 | - Blade::directive('elseAdminCan', function () { |
|
| 42 | + Blade::directive('elseAdminCan', function() { |
|
| 43 | 43 | return '<?php } else { ?>'; |
| 44 | 44 | }); |
| 45 | 45 | |
| 46 | - Blade::directive('endAdminCan', function () { |
|
| 46 | + Blade::directive('endAdminCan', function() { |
|
| 47 | 47 | return '<?php } ?>'; |
| 48 | 48 | }); |
| 49 | 49 | |