Showing 10 of 2,055 results.

The Laravel Application Console Kernel

…ravel/framework/src/Illuminate/Foundation/Console/Kernel.php file; this kernel will be defined as the framework console kernel). From the applications point of view, the application console kernel is responsible for specifying which custom...

Laravel Collection Public API: sort

sort(callable $callback = null) The sort method is used to sort the collection. If no $callback is provided, the collection will be sorted using a case-insensitive "natural order" algorithm. An optional $callback can be supplied to customize the...

The Challenge | Antlers and Blade Formatters: Behind the Scenes

…Value < 50 }} 15 Branch Two 16 {{ else }} 17 Else Branch 18 {{ /if }} 19 < script > 20 let value = " {{ text }} " ; 21 console . log ( value ) ; 22 < / script > 23 </ body > 24 </ html > Like with the Blade example, we have a lot of mixed...

Laravel Collection Public API: splice

splice($offset, $length = null, $replacement = []) The splice method is a versatile method; it is often used to remove a portion of a collection and return the removed section. It defines three parameters: $offset , $length and $replacement . The...