Showing 7 of 1,216 result(s)
Laravel's Illuminate\Console\Command base class provides useful methods for interoping with other Artisan commands: the call($command, array $arguments = []) and callSilent($command, array $arguments = []) methods. Both methods accept the name of...
The Blade formatter is capable of using Laravel Pint to format PHP code inside your Blade directives, as well as in raw PHP blocks. You will need to have Laravel Pint available globally, or available within your project's vendor folder. In...
The endsWith is used to check if a given $haystack ends with any of the supplied $needles . The $haystack is any value that can be cast into a string, and $needles is any value that can be cast into an array. If the $haystack ends with any of the...
The signature of the startsWith method is:
The starts_with function is a shortcut to calling Str::startsWith . This function is declared in the global namespace.
The signature of the slug method is:
This function will also convert the entire string to its lower cased alternative.