Created
May 22, 2015 19:46
-
-
Save vinicius73/51c4857f9f02a9a14dac to your computer and use it in GitHub Desktop.
app('route')->get
This file contains hidden or 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 | |
/** | |
* Get the available container instance. | |
* | |
* @param string $make | |
* @param array $parameters | |
* @return mixed|\Illuminate\Foundation\Application | |
*/ | |
function app($make = null, $parameters = []) | |
{ | |
if (is_null($make)) return Container::getInstance(); | |
return Container::getInstance()->make($make, $parameters); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment