use 'as' instead of 'name'.

This commit is contained in:
Taylor Otwell 2012-02-13 16:50:41 -06:00
parent 86e109b7bc
commit 6ced385d20
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ protected function handler()
*/
public function is($name)
{
return array_get($this->action, 'name') === $name;
return array_get($this->action, 'as') === $name;
}
/**

View File

@ -371,7 +371,7 @@ public static function find($name)
{
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);
}