Skip to content

Commit

Permalink
Update requirements for Laravel 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
stillzombie authored Sep 5, 2019
1 parent 25463a6 commit 2fbdfac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/SnippetManagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ public function register()
$this->app->singleton('snippet.manager', function ($app) {
return new SnippetManager($app);
});

Blade::directive('namespace', function ($arguments) {
return "<?php App::make('snippet.manager')->setNameSpace({$arguments}) ?>";
});

Blade::directive('s', function ($arguments) {
return "<?php echo App::make('snippet.manager')->get({$arguments}) ?>";
});
}

public function boot(Router $router)
Expand Down Expand Up @@ -59,6 +51,14 @@ public function boot(Router $router)
$router->get('groups', 'Controller@groups');
$router->post('clearCache', 'Controller@clearCache');
});

Blade::directive('namespace', function ($arguments) {
return "<?php App::make('snippet.manager')->setNameSpace({$arguments}) ?>";
});

Blade::directive('s', function ($arguments) {
return "<?php echo App::make('snippet.manager')->get({$arguments}) ?>";
});
}

public function provides()
Expand Down

0 comments on commit 2fbdfac

Please sign in to comment.