Skip to content

Commit

Permalink
Merge pull request #2 from stillzombie/patch-1
Browse files Browse the repository at this point in the history
Update requirements for Laravel 5.8
  • Loading branch information
FabianHippmann authored Sep 5, 2019
2 parents 25463a6 + 2fbdfac commit d373ace
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 d373ace

Please sign in to comment.