Illuminate\Routing\Router::currentRouteUses PHP Method

currentRouteUses() public method

Determine if the current route action matches a given action.
public currentRouteUses ( string $action ) : boolean
$action string
return boolean
    public function currentRouteUses($action)
    {
        return $this->currentRouteAction() == $action;
    }

Usage Example

Example #1
0
 /**
  * Determine if the current route action matches a given action.
  *
  * @param string $action
  * @return bool 
  * @static 
  */
 public static function currentRouteUses($action)
 {
     return \Illuminate\Routing\Router::currentRouteUses($action);
 }