Illuminate\Routing\Router::uses PHP Method

uses() public method

Alias for the "currentRouteUses" method.
public uses ( ) : boolean
return boolean
    public function uses()
    {
        foreach (func_get_args() as $pattern) {
            if (Str::is($pattern, $this->currentRouteAction())) {
                return true;
            }
        }
        return false;
    }

Usage Example

Example #1
0
 /**
  * Alias for the "currentRouteUses" method.
  *
  * @param mixed  string
  * @return bool 
  * @static 
  */
 public static function uses()
 {
     return \Illuminate\Routing\Router::uses();
 }