Showing 10 of 2,145 results.

Methods | Procedure vs. Function vs. Method vs. ?

Now we are on methods. And what an a mess we are about to get in. The term method falls out of object-oriented programming, of which we won't go into depth here. For now, an object is a collection of things that are related, or a program within a...

Laravel Collection Public API: put

put($key, $value) The put method is used to add a new item to the collection with a given $key and $value . The put method modifies the original Collection instance and returns a reference to it. The following code example will highlight the usage...

getAllConditions | Document Structures

Returns all the document's conditions. This method automatically performs structural analysis. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public function getAllConditions ( ) : Collection ; Example Use 1 <?php 2 3 use Stillat \...

Laravel 4: Rendering a View to a String

Laravel 4 offers Views, a way to separate your applications controllers and business logic from your presentation layer. Sometimes, it can be useful to render the view into a local variable instead of outputting it to the client. You are probably...

Laravel Collection Public API: flatten

flatten The flatten method will return a new Collection instance representing a flattened version of the original collection's items. The flatten method internally makes use of the Illuminate\Support\Arr::flatten($array) helper method. The flatten...

registerCustomComponentTagCompiler | Blade Compiler

Register a custom component tag compiler. This method will automatically register the provided tag name with the component tag compiler. Argument Description $tagName The custom component tag prefix. $compiler The compiler instance. 1 <?php 2 3...