Showing 7 of 1,975 result(s)
…se comments when using the {{ meerkat:responses }} tag.To display soft deleted comments, we can supply a value of true for the with_trashed parameter: We can react to this in our templates by checking the is_deleted value:The previous example...
method_field($method) The method_field helper function is a simple function that returns a new instance of Illuminate\Support\HtmlString . The contents of the HtmlString instance is a hidden HTML input field with the name _method and the a value...
…upplied to the response function, an implementation of Illuminate\Contracts\Routing\ResponseFactory will be returned (by default this is an instance of Illuminate\Routing\ResponseFactory ). The following example demonstrates some of the different...
When a Collection instance is cast into a string, its JSON representation is returned as the result. Internally this is accomplished by returning the results of the collection's toJson method. After the above code has executed, the $stringValue...
The dump method is similar to the dd method in that it is used to dump the contents of the collection to the output for debugging purposes, however, unlike the dd method, the dump method will not stop execution of the script. Because of the...
The SORT_NUMERIC treats each item as a number when doing the comparison. The following code example shows how to use the SORT_NUMERIC flag when sorting the $collection created previously (the callback function will return the string representation...
The SORT_STRING treats each item as a string when doing the comparison. The following code example shows how to use the SORT_STRING flag when sorting the $collection created previously (the callback function will return the string representation...