/**
  * 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();
 }
Exemplo n.º 2
0
 function api($make = null, $parameters = [])
 {
     if (is_null($make)) {
         return Illuminate\Container\Container::getInstance();
     }
     return Illuminate\Container\Container::getInstance()->make($make, $parameters);
 }