Showing 7 of 1,216 result(s)
…he ucfirst helper method is used to uppercase the first letter of a string. It defines only one parameter— $string —which is the string that should have its first letter upper cased. This helper method differs from PHP's ucfirst function because...
The only helper method is the logical opposite of the except (discussed in the article Laravel Array Helper Function: array_except ) method. The signature for the only helper method is: only($array, $keys) Assuming that the $_POST super-global...
last($array, callable $callback = null, $default = null) The last helper method is the logical opposite of the first (discussed in the article Laravel Array Helper Function: array_first method. The difference is that the last function will return...
pull(&$array, $key, $default = null) The pull helper method is similar to the get (covered in the Laravel Array Helper Function: array_get article) method in that it will return a value for the given $key in the $array (or the $default , if it is...
set(&$array, $key, $value) The set helper method is the logical opposite of the forget (discussed in the Laravel Array Helper Function: array_forget article) method. its purpose is to set values within an array. The set method also uses dot...
…n $key ). The following examples are identical in their end result: Using the request helper function, we can access only a subset of the user's input data: Receiving a subset of data can also be accomplished using the shorthand syntax introduced...
…ory ) or an implementation instance of Illuminate\Contracts\View\View (which by default would be an instance of Illuminate\View\View ). The examples in this section will make use of the default welcome.blade.php example view file that ships with...
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.