Showing 7 of 1,216 result(s)
The storage_path will return the path to the storage directory. It can also be used to construct paths relative to the storage directory if a $path is supplied.The signature of the storage_path function is:The following examples will assume that...
Even though Laravel only provides a Illuminate\Contracts\Hashing\Hasher implementation for the bcrypt function, there are many more hashing functions that are available to developers. The following functions are available through the use of PHP's...
Studly caps is a way of formatting text with capital letters, according to some pattern. Laravel's pattern is to remove the following word separators and capitalize the first letter of each word it finds (while not affecting the case of any other...
To create a macro, first locate the desired class to create a macro for. In the following examples, a rot13 macro will be created for the \Illuminate\Support\Str class. The first helper function will be a wrapper of PHP's str_rot13 function, which...
The following methods are available in the Macroable trait: macro($name, callable $macro) : The macro method is used to create a macro, and can be examined in the previous code examples. hasMacro($macro) : The hasMacro method is used to determine...
Since Laravel's translator is build on top of Symfony's translator component, the syntax rules used by Symfony's pluralization system will work with Laravel. Pluralization translation lines follow the ISO 31-11 standard for numeric intervals, such...
The signature of the is method is:
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.