Showing 10 of 2,144 results.

PostImage | The Statamic Add-on Roundup

You may have noticed that there are many different sizes of "post images" on this site. One of the first versions of the site that I built used an image with the same dimensions for each place a blog post might appear. For example, on the home...

Encrypting and Decrypting Within Laravel Applications

Laravel provides support for AES encryption, a symmetric key encryption scheme, right out of the box. Laravel also automatically signs all encrypted values with a message authentication code (MAC) so that any modifications to the encrypted data...

Laravel Artisan Vendor Command: The vendor:publish Command

The vendor:publish command is used to publish any assets that are available from third-party vendor packages. It provides a few options to help specifically choose which assets should be published. The following table lists and describes each of...

Laravel Application Helper: config_path

config_path($path = '') The config_path function can be used to retrieve the path the config directory. It can also be used to construct paths relative to the configuration directory by supplying a $path . The following examples will assume that...

But Why? | Lambdas And Closures

These anonymous functions are useful when we as developers need to do something right then and there, but do not necessarily want, or need to create a dedicated function for the task. Like when we define routes in Laravel, it would be cumbersome...

Laravel 5: Creating Combinations of Elements With crossJoin

The crossJoin method can be used to combine the input arrays; the resulting array will contain all of the possible combinations of the input array values.The signature of the crossJoin method is: 1 public static function crossJoin ( 2 ... $ arrays...

Laravel 5: Reporting Application Exceptions With report

The report function is used to report an exception to the applications exception handler. By default, the application exception handler is located at app/Exceptions/Handler.php . The report function will invoke the report method of the application...