Protecting Routes: Redirecting Unauthenticated Users

/**
 * Get the path the user should be redirected to.
 *
 * @param  \Illuminate\Http\Request  $request
 * @return string
 */
protected function redirectTo($request)
{
    return route('login');
}

Protecting Routes: Redirecting Unauthenticated Users — Structure map

Clickable & Draggable!

Protecting Routes: Redirecting Unauthenticated Users — Related pages: