Пример #1
0
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  \Closure  $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     return $this->auth->basic() ?: $next($request);
 }
Пример #2
0
 /**
  * Run the request filter.
  *
  * @return mixed
  */
 public function filter()
 {
     return $this->auth->basic();
 }