for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Terranet\Administrator\Middleware;
use Closure;
use Illuminate\Http\Request;
/**
* Class AuthProvider.
*/
class AuthProvider
{
* Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return mixed
public function handle($request, Closure $next)
auth()->shouldUse('admin');
auth
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
return $next($request);
}