/** * Get the available container instance. * * @param string $make * @return mixed */ function app($make = null) { if (!is_null($make)) { return app()->make($make); } return Illuminate\Container\Container::getInstance(); }
function api($make = null, $parameters = []) { if (is_null($make)) { return Illuminate\Container\Container::getInstance(); } return Illuminate\Container\Container::getInstance()->make($make, $parameters); }