Showing 10 of 1,204 results.

Specifying the Locale | Laravel 5: String Translation Public API

Like with many of the translator's public methods, we can specify the locale when calling the choice method via an argument to the $locale parameter. By default, Laravel will use the default configured locale when you invoke the choice method. We...

Laravel Artisan General Command: The clear-resets Command

The auth:clear-resets can be used to remove expired password reset tokens from the database. The command defines an optional name parameter which can be used which password broker will be used when removing the expired reset tokens (by default the...

Methods | Procedure vs. Function vs. Method vs. ?

…y bit of code! What we are doing with it though is creating a class called Triangle . The triangle class appears to have three functions: setBase(float b) , setHeight(float h) and area() . But wait! We are talking about a class here. Looking at...

Configuration Overview

…order to automatically have future tags and modifiers registered., metadata_rules.php, : Provides rules for removing duplicate metadata tags when using the, {{ se_meta /}}, Antlers tag., metadata.php, : Allows you to manage configuration values...

Laravel Collection Public API: each

…k which will be called on each item in the collection. If the $callback returns false , the each method will break from its iterator and return a reference back to the original Collection instance. The callback should define both an $item and a...

Laravel Artisan Tinker: The dump Command

The dump command can be used to display information about a particular variable or class instance within the console window. It will display the information using Symfony's VarDumper console component: 1 PHP Fatal error: Class 'User' not found in...