@@ -213,7 +213,7 @@ class Route {
*/
public function is($name)
{
- return array_get($this->action, 'name') === $name;
+ return array_get($this->action, 'as') === $name;
}
/**
@@ -371,7 +371,7 @@ class Router {
foreach ($routes as $key => $value)
- if (isset($value['name']) and $value['name'] === $name)
+ if (isset($value['as']) and $value['as'] === $name)
return static::$names[$name] = array($key => $value);