Commit 6ced385d authored by Taylor Otwell's avatar Taylor Otwell

use 'as' instead of 'name'.

parent 86e109b7
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment