Showing 10 of 2,044 results.

Laravel Artisan Generator Command: The make:mail Command

…ame of the newly generated class. The following would generate a new mail class named UserSubscribedMail mail class: 1 # Generate a new UserSubscribedMail class. 2 php artisan make:make UserSubscribedMail After the command has been executed, a...

Laravel String Helper Function: str_replace_last

The replaceLast helper method is the logical opposite of the replaceFirst helper method. It is used to replace the last occurrence of a given $search string with the provided $replace string in the $subject string. ALl three parameters are...

Laravel Application Helper: storage_path

…'') 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 following examples will assume that the Laravel application is installed in...

Creating a Facade Alias | Laravel 5 Facades

Creating a facade alias is completely optional. Package developers often include the following steps in their package installation instructions, but it is not required for a facade to work. In the config/app.php file, there is an aliases...

Pint Result Cache | Formatter Configuration and Usage

The Blade formatter will cache Pint output on a per-file basis. By default this cache is stored in node_modules/prettier-plugin-blade/_cache . The location of the cache can be changed by updating the .blade.format.json file and specifying a path...

Class String Emulation | Formatter Configuration and Usage

Class string emulation is a feature (starting with version 1.5) that is able to apply the results of prettier plugins that target CSS class lists to strings contained within Blade directives and embedded PHP code. This feature also works when...

Limiting Visitor Data Collection | Product Data Privacy

Meerkat allows site administrators to easily disable what additional data your site collects about visitors when they submit a comment. These settings can be adjusted in the Control Panel. View the User and Visitor Data Privacy article to learn more.