| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function boot() |
||
| 11 | { |
||
| 12 | $this->publishes([ |
||
| 13 | __DIR__.'/../config/laravel-blade-javascript.php' => config_path('laravel-blade-javascript.php'), |
||
| 14 | ], 'config'); |
||
| 15 | |||
| 16 | Blade::directive('javascript', function ($expression) { |
||
| 17 | |||
| 18 | $expression = $this->makeBackwardsCompatible($expression); |
||
| 19 | |||
| 20 | return "<?= app('\Spatie\BladeJavaScript\Renderer')->render{$expression}; ?>"; |
||
| 21 | }); |
||
| 22 | } |
||
| 23 | |||
| 41 |