This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Register these inside a service provider: | |
| Blade::directive('route', function ($expression) { | |
| return "<?php echo route({$expression}) ?>"; | |
| }); | |
| Blade::directive('routeIs', function ($expression) { | |
| return "<?php if (request()->routeIs({$expression})) : ?>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'phpdoc_indent' => true, | |
| 'binary_operator_spaces' => [ | |
| 'operators' => ['=>' => null] | |
| ], |
NewerOlder