Showing 10 of 2,133 results.

Command --collection Option | Generating Images

The generate-images command supports a --collection option that may be useful if you need to run the command from another command or other automation script. When this option is set it will not prompt for any input. To process images for all...

Laravel Application Helper Function: method_field

method_field($method) The method_field helper function is a simple function that returns a new instance of Illuminate\Support\HtmlString . The contents of the HtmlString instance is a hidden HTML input field with the name _method and the a value...

Creating a Simple Honeypot Field in Laravel

In this blog post, we'll cover a simple method to implement a honeypot form mechanism. A honeypot is a simple security measure designed to catch bots and automated scripts using an inconspicuous form field that human users should leave empty. We...

Laravel 5: Checking if a Variable Holds a Value With filled

The filled helper function is the logical opposite of the blank helper function, and can be used to quickly determine if the provided value has a non-null, or non-empty value. The provided $value is considered filled if any of the following...

Generation Failed | Events

The GenerationFailed event is fired if the image generation process failed for any reason. The event object will have the following properties: $entry, : The entry the image will be generated for., $size, : The details from the configuration file...

Laravel Artisan Queue Command: The queue:flush Command

The queue:flush command is used to clear the log of failed queue jobs. It accepts no arguments or options and can be called like so: 1 # Flush all the failed queue jobs. 2 php artisan queue:flush This command will remove all entries from the...

Laravel's Bcrypt Hasher

The Illuminate\Hashing\Bcrypt hasher is registered with the service container in the Illuminate\Hashing\HashServiceProvider service provider, and is bound to the name hash (the hash key in the service container is itself an alias for the...

Laravel 5: Encrypting Strings With encrypt

The encrypt helper function can be used to encrypt a given string value. The function resolves the configured "Illuminate\Contracts\Encryption\Encrypter" implementation from the Service Container and then calls the encrypt method on the Encrypter...