From 4d990f362157dff536330c73b6c052c6700c961d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EA=B4=80=EC=98=81?= Date: Thu, 8 Feb 2018 09:15:36 +0900 Subject: [PATCH] Fix @route Blade not working on some env (issue #115) --- src/ZiggyServiceProvider.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ZiggyServiceProvider.php b/src/ZiggyServiceProvider.php index 8e99e9f9..dd7496a9 100644 --- a/src/ZiggyServiceProvider.php +++ b/src/ZiggyServiceProvider.php @@ -18,10 +18,8 @@ public function boot() return Macro::whitelist($this, $group); }); - $this->app->afterResolving('blade.compiler', function (BladeCompiler $bladeCompiler) { - $bladeCompiler->directive('routes', function ($group) { - return "generate({$group}); ?>"; - }); + $this->app['blade.compiler']->directive('routes', function ($group) { + return "generate({$group}); ?>"; }); if ($this->app->runningInConsole()) {