Showing 10 of 1,280 results.

Resolving the Class Behind a Facade | Laravel 5 Facades

…ode example, the $className variable would contain the value "Illuminate\Auth\AuthManager". This method of determining a facade's underlying class can be expanded on to create a function that will list every facade's underlying class for the...

Laravel Artisan Event Command: The event:generate Command

The event:generate command is used to generate missing events and listeners based on the events that are registered in the applications EventServiceProvider (by default this service provider is located in the app/Providers/EventServiceProvider.php...

Laravel Artisan Queue Command: The queue:table Command

The queue:table command is used to create a new migration for the jobs database table. This table is required to use the database queue driver. This command defines no parameters and can be used like so: 1 php artisan queue:table The migration...

Laravel Collection Public API: filter

filter(callable $callback = null) The filter method applies a filter to the collection. An optional $callback can be supplied to the filter method. If no $callback is supplied to the filter method, any value in the collection that evaluates to...

Laravel Collection Public API: has

has($key) The has method is used to determine if a item exists in the collection based on a given $key . The has method returns true if the item exists and false if it does not. The following example demonstrates the usage of the has method: 1...

Filter Search