Last active
April 5, 2017 08:40
-
-
Save MatteoOreficeIT/81e282ab139bacd80db952c89181f2cb to your computer and use it in GitHub Desktop.
Which keys Laravel \Illuminate\Routing\Route::$action array could contains ( undocumented - inferred from source )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Routing; | |
class Route | |
{ | |
/** | |
* The route action array. | |
* | |
* @var array | |
*/ | |
public $action = [ | |
// Types: <string> | |
'prefix' => '', // es: admin | |
// Types: <string>:name of a function, <string>:"Class@method" style callback , Closure | |
'uses' => '', | |
'domain'=>'', | |
'as'=>'', | |
'controller'=>'', | |
'middleware'=>'', | |
]; | |
/** | |
* Create a new Route instance. | |
* | |
* @param array|string $methods | |
* @param string $uri | |
* @param \Closure|array $action ------>> You can pass these keys like an array | |
* @return void | |
*/ | |
public function __construct($methods, $uri, $action) | |
{ | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment