Showing 7 of 1,216 result(s)
…st a shortcut to a longer class name. For example, when we use something as something else, we are creating a class alias: use Some\ReallyReallyLongClassName as ShorterName; In the above example ShorterName is an alias of...
…onsole/Commands directory contains an Inspire command by default (stored in the app/Console/Commands/Inspire.php file). This command is extremely simple and just displays one of the following messages at random: These quotes are stored in the...
I recently published a series of articles about creating a custom pagination view where users can enter the page number in a text box. On the second post I received a comment asking how to do pretty URLs with Laravel's paginator. Well here we go,...
…allowed in the returned substring). If $length is null , the substring will continue on to the end of the string. substr Encoding PHP's mb_substr function allows you to change the encoding that is used when extracting the substring from the...
info($message, $context = []) The info helper will write an information entry into Laravel's log files. It allows a $message to be set, as well as an optional $context (which is an array of data). While the $context must be an array, the actual...
…ll return an implementation of Illuminate\Contracts\Logging\Log , which by default is an instance of \Illuminate\Log\Writer class. When the logger function is not being used to retrieve a Log instance, a $message can be set and it will be written...
…e https:// schema, otherwise it will have the http:// schema. The application URI used to generate the final URI is what was used to issue the request, and typically matches what appears in the browser's address bar. Assuming the application path...
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.