Browse Source

Merge pull request #3733 from jcxm360/patch-1

Update Kernel.php
Graham Campbell 8 years ago
parent
commit
9fa63f8ce8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Kernel.php

+ 1 - 1
app/Http/Kernel.php

@@ -46,7 +46,7 @@ class Kernel extends HttpKernel
     protected $routeMiddleware = [
         'auth' => \App\Http\Middleware\Authenticate::class,
         'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
-        'can' => \Illuminate\Foundation\Http\Middleware::class,
+        'can' => \Illuminate\Foundation\Http\Middleware\Authorize::class,
         'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
         'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
     ];