Request::is PHP Method

is() public static method

Determine if the current request URI matches a pattern.
public static is ( ) : boolean
return boolean
        public static function is()
        {
            return \Illuminate\Http\Request::is();
        }

Usage Example

Example #1
1
 /**
  * Render an exception into an HTTP response.
  *
  * @param Request   $request
  * @param Exception $exception
  *
  * @return Response
  */
 public function render($request, Exception $exception)
 {
     if (!$request->is(config('jsonapi.url'))) {
         return parent::render($request, $exception);
     }
     return $this->handle($request, $exception);
 }
All Usage Examples Of Request::is