Created
September 20, 2017 14:38
-
-
Save ElliottLandsborough/09678e23c123768faac3db6195fa34d8 to your computer and use it in GitHub Desktop.
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 | |
| namespace App\Providers; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\ServiceProvider; | |
| use Blade; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Bootstrap any application services. | |
| * | |
| * @return void | |
| */ | |
| public function boot(Request $request) | |
| { | |
| Blade::directive('break', function($expression) { | |
| return "<?php break; ?>"; | |
| }); | |
| Blade::directive('continue', function($expression) { | |
| return "<?php continue; ?>"; | |
| }); | |
| } | |
| /** | |
| * Register any application services. | |
| * | |
| * @return void | |
| */ | |
| public function register() | |
| { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment