Search

Showing 7 of 1,216 result(s)

/blog/2016/11/19/laravel-array-helper-function-array_has

has($array, $key) The has helper method will return a boolean value that indicates if the given $key exists in the supplied $array , using dot notation. This method is incredibly useful when checking if an array has a specific key at an arbitrary...

/blog/2016/11/19/laravel-array-helper-function-array_pluck

pluck($array, $value, $key = null) The pluck helper method is used to retrieve a list of specific values from a given $array . It is most useful when used against arrays of objects, but will also work with arrays just as well. Let's use the...

/blog/2016/11/20/laravel-application-helper-app

app($make = null, $parameters = []) The app function provides access to the Illuminate\Container\Container instance. Because Container is a singleton, any call to app() will return the same Container instance. The app function can also be used to...

/blog/2016/11/20/laravel-application-helper-auth

auth($guard = null) Used without supplying any arguments for $guard , the auth helper function is an alternative to using the Auth facade. With no arguments, the auth function returns an instance of Illuminate\Contracts\Auth\Factory (which by...

/blog/2016/11/20/laravel-application-helper-function-abort

abort($code, $message = '', array $headers = []) The abort function will throw an instance of Symfony\Component\HttpKernel\Exception\HttpException with the given $code , $message and any $headers supplied. These exceptions can be caught and...

/blog/2016/11/20/laravel-application-helper-function-back

back($status = 302, $headers = []) The back helper function is used to create a redirect response to the user's previous location. It defines two parameters which can be used to control the status code and headers of the response. An integer...

/blog/2016/11/20/laravel-application-helper-function-dispatch

The dispatch helper function can be used to push a new job onto the job queue (or dispatch the job). The function resolves the configured Illuminate\Contracts\Bus\Dispatcher implementation from the Service Container and then calls the dispatch...