src/Http/Middleware/VerifyRole.php
public function handle($request, Closure $next, $role)
    {
        if ($this->auth->check() && $this->auth->user()->is($role)) {
            return $next($request);
        }

       return $this->auth->check() ?
         view('lcp::auth.errors.role')->withError($role) : 
         view('lcp::auth.login');
    }
public function handle($request, Closure $next, $role)
    {
        if ($this->auth->check() && $this->auth->user()->is($role)) {
            return $next($request);
        }

       return $this->auth->check() ?
         view('lcp::auth.errors.role')->withError($role) : 
         view('lcp::auth.login');
    }
Handle an incoming request.

@param \Illuminate\Http\Request $request
@param \Closure $next
@param int|string $role
@return view