Showing 10 of 1,280 results.

Laravel Application Helper: database_path

…base_path($path = '') The database_path function can be used to retrieve the path to the database directory. It can also be used to construct paths relative to the database directory by supplying a $path . The following examples will assume that...

Laravel 5 Facades

Facades are a convenient way to access Laravel's components. Each facade is bound to some component already registered in the service container. Facades are typically used to provide a simpler interface to an complex underlying subsystem. While...

Laravel 4: Default Events

Laravel 4 provides a few events that are fired throughout your applications life cycle. This should just serve as a quick reference if you need to find where an event is called or what events are available. Event File auth.attempt...

Laravel 4: Be Careful With Your After Filters

Laravel 4 provides a convenient after filter. This filter will run after your routes and controllers have run. There are many awesome things you can do in the filter, such as logging, or checking various things. A basic usage of this filter might...

Laravel String Helper Function: str_plural

…ial cases and will not attempt some very specific strings. The change in a word, such as to show tense, or the number of items, is called an inflection . The signature for the plural helper function is: plural($value, $count = 2)Previous versions...

Laravel Collection Public API: whereInLoose

whereInLoose($key, array $values) The whereInLoose method is similar to the whereIn (discussed in the Laravel Collection Public API: whereIn article) method in that both methods can be used to filter the collection based on a given $key and an...

Laravel Application Helper: abort_if

abort_if($boolean, $code, $message = '', array $headers) The abort_if helper function performs the same basic function as the abort helper function (discussed in the Laravel Application Helper: abort article). The only difference is that the...

Filter Search