Browse Source

use 'as' instead of 'name'.

Taylor Otwell 13 years ago
parent
commit
6ced385d20
2 changed files with 2 additions and 2 deletions
  1. 1 1
      laravel/routing/route.php
  2. 1 1
      laravel/routing/router.php

+ 1 - 1
laravel/routing/route.php

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

+ 1 - 1
laravel/routing/router.php

@@ -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);
 				}