Showing 10 of 1,204 results.

Example Use | Laravel 5: String Translation Public API

…choice and transChoice methods: 1 <?php 2 3 use Illuminate \ Translation \ MessageSelector ; 4 5 class MyMessageSelector extends MessageSelector 6 { 7 8 /** 9 * Override the `choose` method to always return 10 * the same translation line. 11 * 12...

Laravel Router Helper Function: delete

…luminate\Routing\Route . 1 <?php 2 3 // Registering a route with a Closure. 4 delete ( ' route-name ' , function ( ) { 5 // Function logic 6 } ) ; 7 8 // Registering a route mapped to a controller method. 9 delete ( ' route-name ' , '...

Laravel Router Helper Function: patch

…Illuminate\Routing\Route . 1 <?php 2 3 // Registering a route with a Closure. 4 patch ( ' route-name ' , function ( ) { 5 // Function logic 6 } ) ; 7 8 // Registering a route mapped to a controller method. 9 patch ( ' route-name ' , '...

Available Orderable Parameters | Sorting Comment Threads

There are many variables that can be used when sorting comment threads; please consult the Default Variables article for information about which properties are available. Compound properties may not be currently supported (i.e.,...

has($key, $locale = null) | The Laravel Translator

The has method determines if a translation exists. It accepts a $key , which corresponds to an array key within the translation group file, i.e., user . The method also accepts a $locale , which can be used to determine if a given key exists for a...