Showing 10 of 1,322 results.

Creating Facades | Laravel 5 Facades

…ere does not need to possibly hundreds of instances of Calculator created: many consumers of the class can share a single instance (note that not all classes should be bound as a singleton). The important part is that we have an service container...

Creating a Facade Alias | Laravel 5 Facades

…des \ Mail :: class , 26 ' Notification ' 27 => Illuminate \ Support \ Facades \ Notification :: class , 28 ' Password ' => Illuminate \ Support \ Facades \ Password :: class , 29 ' Queue ' => Illuminate \ Support \ Facades \ Queue :: class , 30...

Laravel Hashing: One Way Encryption

Hashing data is a common task in software development. Hashing is similar to encryption, with the difference that hashing is a one-way process. The goal is that the original message cannot be retrieved from the resulting hash. Hashing is...

PHP Block Nodes | Parser Nodes Overview

The parser produces instances of the Stillat\BladeParser\Nodes\PhpBlockNode class after successfully parsing a @php and @endphp directive pair. PhpBlockNode instances are only created when the opening @php directive contains  no  arguments....

12. No Surrender of Others' Freedom. | License

If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy...

15. Disclaimer of Warranty. | License

…IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,...

Laravel Artisan Generator Command: The make:policy Command

The make:policy command is used to generate to policy classes. It requires a name to be provided; this name will be used as the file name as well as the newly generated class name. Policy classes are stored within the app/Policies directory. The...

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

What Comes Next | Laracon, Blade and What's Next

…it allows me the freedom to scrap things and rewrite it a few dozen times as I go. Despite that, I'd like to talk about a few of the exciting things this will unlock and my current goal posts. The first goal is to be able to refactor Blaze, an...

Laravel Artisan Generator Command: The make:provider Command

…he make:provider command can be used to quickly create new service providers for your application. It accepts only the name to be used for the newly generated service provider class and file. Newly generated providers are stored in the...