Showing 7 of 2,041 result(s)
There are extensive customizations that can be made to console progress bars. The progress bars that are displayed in Laravel commands are an instance of Symfony\Component\Console\Helper\ProgressBar class. Progress bars also inherit their styles...
The tap helper function is used to call a given Closure (provided as an argument to the $callback parameter) with the given $value . The tap helper function will return the reference to the original $value as its return value. This allows you to...
tap($value, $callback) The tap helper function is used to call a given Closure (provided as an argument to the $callback parameter) with the given $value . The tap helper function will return the reference to the original $value as its return...
We have determined we can probably change the template's layout by calling the layout method on the Statamic\View\View instance. But how do we gain access to this View instance in order to actually do this? Through more source diving, we can see...
With our Blade precompiler scaffolding out of the way, we can now start working on parsing our custom Blade components. We will use the Blade parsing library we included earlier since it provides some utility features that make it much easier to...
Each application contains a console kernel. The console kernel is defined in the app/Console/Kernel.php (this will be referred to as the application console kernel) file. The kernel class that exists in that file extends Laravel's console kernel...
The where method allows developers to filter a collection given a key value pair. It filters the collection's items by checking that the given $key has some value equal to the provided $value . An argument can be supplied for the $operator...