for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Container\Container;
use Illuminate\Support\Collection;
if (! function_exists('app')) {
/**
* Get the available container instance.
*
* @param string $make
* @param array $parameters
* @return mixed|Container
*/
function app($make = null, $parameters = [])
{
if (is_null($make)) {
return Container::getInstance();
}
return Container::getInstance()->make($make, $parameters);
if (! function_exists('config')) {
* Get / set the specified configuration value.
* If an array is passed as the key, we will assume you want to set an array of values.
* @param array|string $key
* @param mixed $default
* @return mixed
function config($key = null, $default = null)
if (is_null($key)) {
return app('config');
if (is_array($key)) {
return app('config')->set($key);
return app('config')->get($key, $default);
if (! function_exists('collect')) {
* Create a collection from the given value.
* @param mixed $value
* @return \Illuminate\Support\Collection
function collect($value = null)
return new Collection($value);