Request::url PHP Method

url() public static method

Get the URL (no query string) for the request.
public static url ( ) : string
return string
        public static function url()
        {
            return \Illuminate\Http\Request::url();
        }

Usage Example

Example #1
0
 public static function createHanlder()
 {
     if (preg_match('/\\/api\\//', \Request::url())) {
         return new ApiExceptionHandler();
     }
     return new WebExceptionHandler();
 }
All Usage Examples Of Request::url