for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Backpack\Base\app\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class UseBackpackAuthGuardInsteadOfDefaultAuthGuard
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
public function handle($request, Closure $next, $guard = null)
$guard
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
app('auth')->setDefaultDriver(config('backpack.base.guard'));
return $next($request);
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.