Create a new middleware ChecksAdminPrivileges and add it to a middleware group with the Auth middleware running first
In the middleware you simply write the logic you want, and voilá now it checks with every request if you are an admin, do this otherwise do that
inside the ChecksAdminPrivileges it could go something like this:
$user = $request->user();
if($user->is_admin != 1)
{
// logic to go to non admin places
return redirect('/');
}
return $next($request);
That will take care of your controller Admin logic, but view specific you can simply in your layout file load an admin partial only if the user is an admin
ie. You need to show some links in the navigation to your admin that you don't want other users to see
So separate your navigation blade files. Maybe nav.blade.php and admin-nav.blade.php
In your layout file only include the admin-nav if the has the is-admin attribute