Showing 10 of 1,278 results.

Laravel Artisan View Command: The view:clear Command

The view:clear command is used to quickly remove all of the compiled view files from the application. This is done by removing all the files from the configured view storage directory (by default this is the storage/framework/views/ directory)....

Laravel Collection Public API: forPage

forPage($page, $perPage) The forPage method is used to implement pagination over collections. The forPage defines two parameters: $page , which is used to tell the collection which "page" should be returned and $perPage , which is used to control...

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...

Laravel Artisan Tinker: The down Command

The down command is used to put the application into maintenance mode. It does this by creating a file named down in the framework storage path (which by default is storage/framework/ ). This command performs the same action as the php artisan...

Laravel Artisan Generator Command: The make:job Command

The make:job command is used to create a new job class. A name must be supplied that will be used as the name of the newly generated class and file. An optional --sync flag can be set to indicate that the created job should be synchronous....

Filter Search