for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yaro\Jarboe\Http\Middleware;
class GuardSwitcher
{
public function handle($request, \Closure $next)
auth()->setDefaultDriver(admin_user_guard());
return $next($request);
}