Showing 10 of 2,145 results.

Laravel 5 Macros: Creating Callback Macros

The first method of creating macros we will explore is the callback function macro. These macros are added to the various classes directly by calling the macro method on the macroable class and then supplying the callback function that will be...

The Laravel Translator

The Translator class is the class that most developers will be used to interacting with. The Translator class is responsible for handling the interactions between the application and the underlying translation systems, such as interacting with...

Array Options | Alternatives to Laravel Artisan Command Signatures

The signature that will be implemented using the getOptions method is: 1 test:command {--optionName=*} The corresponding getOptions implementation would be: 1 <?php 2 3 use Symfony \ Component \ Console \ Input \ InputOption ; 4 5 // Beginning of...

Laravel Artisan Generator Command: The make:mail Command

…il class named UserSubscribedMail mail class: 1 # Generate a new UserSubscribedMail class. 2 php artisan make:make UserSubscribedMail After the command has been executed, a new file will be created at app/Mail/UserSubscribedMail.php . The file...

Node.js Errors When Generating Images | Troubleshooting

If you are seeing exceptions when generating images, and see messages similar to the following in your logs: 1 node:events:495 2 throw er; // Unhandled 'error' event 3 ^ 4 5 Error: read ENOTCONN 6 at tryReadStart (node:net:710:20) 7 at...

Custom Images

Social Media Image Kit allows you to customize social media images on a per-entry basis. This features allows for a custom set of images to be used in place of the automatically generated ones.To utilize this feature, navigate to the entry within...

Laravel 5: String Translation Public API

The Illuminate\Translation\Translator class is the class that most Laravel developers will become the most familiar with when interacting with the Laravel translation services. The Translator class is responsible for handling the interactions...

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...

Filter Search