Skip to content

Instantly share code, notes, and snippets.

@wichaksono
Created March 15, 2018 00:55
Show Gist options
  • Save wichaksono/1fc6c0f8a4cbdfa83c0b838ef6396f99 to your computer and use it in GitHub Desktop.
Save wichaksono/1fc6c0f8a4cbdfa83c0b838ef6396f99 to your computer and use it in GitHub Desktop.
protected $routeMiddleware = [
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'role' => \App\Http\Middleware\RoleMiddleware::class, // yang kita daftarkan
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment