Search

Showing 7 of 1,216 result(s)

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

event($event, $payload = [], $halt = false) The event helper is a convenient way to dispatch a particular $event to its listeners. An optional $payload of data can also be supplied when dispatching the event. When the event is dispatched, all its...

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

factory() The factory function is used to create Eloquent models, generally used when testing an application. The factory method can generally take one of four forms:

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

method_field($method) The method_field helper function is a simple function that returns a new instance of Illuminate\Support\HtmlString . The contents of the HtmlString instance is a hidden HTML input field with the name _method and the a value...

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

redirect($to = null, $status = 302, $headers = [], $secure = null) The redirect helper function is a versatile helper function. The $to parameter is defined with a default value of null . When $to is null , the redirect function by default will...

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

validator(array $data = [], array $rules = [], array $messages = [], array $customAttributes = []) The validator helper function is a versatile helper function. If no arguments are supplied to the validator function (all arguments are optional),...

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

old($key = null, $default = null) 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...

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

policy($class) The policy helper function can be used to retrieve a policy (a policy class can be any valid PHP class) instance for a given $class . The $class can be either a string or an object instance. If no policies for the given $class have...

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.