Example #1
0
 /**
  * Determine if the current request URI matches a pattern.
  *
  * @param  mixed  string
  * @return bool
  */
 public function is()
 {
     foreach (func_get_args() as $pattern) {
         if (Inflector::is($pattern, urldecode($this->path()))) {
             return true;
         }
     }
     return false;
 }