Browse Source

URI data is not available in the before filter

More info: http://forums.laravel.io/viewtopic.php?id=4458
demsey2 12 years ago
parent
commit
18e5817117
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/routing/controller.php

+ 2 - 2
laravel/routing/controller.php

@@ -276,7 +276,7 @@ abstract class Controller {
 		// Again, as was the case with route closures, if the controller "before"
 		// Again, as was the case with route closures, if the controller "before"
 		// filters return a response, it will be considered the response to the
 		// filters return a response, it will be considered the response to the
 		// request and the controller method will not be used.
 		// request and the controller method will not be used.
-		$response = Filter::run($filters, array(), true);
+		$response = Filter::run($filters, $parameters, true);
 
 
 		if (is_null($response))
 		if (is_null($response))
 		{
 		{
@@ -439,4 +439,4 @@ abstract class Controller {
 		}
 		}
 	}
 	}
 
 
-}
+}