Search

Showing 7 of 1,216 result(s)

/blog/2018/04/14/laravel-5-accessing-and-manipulating-configuration-values-with-config

The config helper function can be used to accomplish many different tasks, depending on the types of arguments, and number of arguments supplied to the function. For example, the config function can be used to resolve an instance of the...

/blog/2018/04/14/laravel-5-accessing-and-manipulating-session-data-with-session

The session function can be used to resolve the "\Illuminate\Session\SessionManager" instance from the service container, retrieve session values, and even set new session values. These different behaviors are controlled by the types, and number,...

/blog/2018/04/14/laravel-5-accessing-and-sending-http-responses-with-response

The response helper function is a useful function that can be used to accomplish two different tasks. If no arguments are supplied to the response function, an implementation of "Illuminate\Contracts\Routing\ResponseFactory" will be returned (by...

/blog/2018/04/14/laravel-5-accessing-session-input-data-with-old

The old helper function is used to retrieve an old input item. It is a shortcut to calling the "Illuminate\Http\Request::old" instance method. It accepts a $key argument and a $default argument. They $key should be the name of the input item to...

/blog/2018/04/14/laravel-5-accessing-the-service-container-with-app

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 resolve registered dependencies...

/blog/2018/04/14/laravel-5-accessing-validation-features-with-validator

The validator helper function is a versatile helper function. If no arguments are supplied to the validator function (all arguments are optional), the function will return a "Illuminate\Contracts\Validation\Factory" implementation instance (the...

/blog/2018/04/14/laravel-5-attempt-an-error-prone-operation-a-number-of-times-with-retry

The retry helper function can be used to attempt an operation that is prone to throwing exceptions a set number of times. This helper function can also wait a certain number of milliseconds between attempts. If the operation specified in the...