Showing 10 of 1,280 results.

Laravel Artisan Migration Command: The migrate:reset Command

The migrate:reset command can be used to roll back all the migrations in your application. The migrate:reset command provides a few options that can be used to customize the behavior of the reset. The following table lists and explains the various...

Laravel Artisan Generator Command: The make:middleware Command

The make:middleware command is used to generate a middleware class. It accepts a name that will be used as the name of the newly generated class and file. Generated classes are stored within the app/Http/Middleware directory. The following example...

Laravel Collection Public API: all

all The all method can be used to retrieve the underlying array that the collection is using to hold its data. The following code demonstrates the usage of the all method: 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 $ items = [ 6 '...

Laravel 5: Generating URLs With url

The url helper function is a versatile function that can be used to generate a URL to a given path or return an instance of the configured Illuminate\Contracts\Routing\UrlGenerator implementation (by default this is an instance of...

Laravel Artisan: Interacting With Commands

This article will discuss the various ways that we as users can interact with Artisan console commands. This article contains many sections which focuses on specific ways to interact with commands or gain information about commands. Each section...

Laravel 5: Setting Array or Object Values With data_set

The data_set helper function can be used to set the value of an item in an array or an object property using dot notation. It accepts a reference to a $target array or object; the $key (array key or object property name) of the data to set and the...

Filter Search