Showing 10 of 1,204 results.

Laravel 5: Accessing the Service Container With app

…ny call to app() will return the same Container instance. The app function can also be used to resolve registered dependencies from the Service Container instance.The signature of the app function is: 1 function app ( 2 $ abstract = null , 3...

License

…mission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS...

Laravel Application Helper: auth

…ing the `Auth` facade. 6 $ currentUser = Auth :: user ( ) ; 7 8 // Get the current user using the `auth` helper. 9 $ currentUser = auth ( ) -> user ( ) ; You can quickly access any custom authentication guards by supplying an argument for the...

Antlers Modifiers

…cope at the time the modifier was invoked, as well as the data from the item being iterated., se_is_set_type, The se_is_set_type modifier is a utility modifier that can be used to easily check if a Bard or replicator field contains a specific set...

Laravel Collection Public API: zip

…m in the third Collection instance The other important thing to notice is a result of the [12, 13, 14, 15] argument having more items that the other arrays. Because the [12, 13, 14, 15] argument had more items, a new fourth Collection was created...

Laravel Collection Public API: only

…he except method section, we can get only the first_name and last_name of the users in a collection: 1 <?php 2 3 // Create a new collection. 4 $ collection = collect ( [ 5 ' first_name ' => ' John ' , 6 ' last_name ' => ' Doe ' , 7 ' password '...

Laravel Application Helper: abort_unless

…s supplied. These exceptions can be caught and handled through the application's kernel. If the argument supplied for $boolean evaluates to false , the abort_unless function will abort execution of the application. The following example assumes...

Laravel 5: Dispatching Queued Jobs With dispatch

…use Illuminate \ Support \ Facades \ Bus ; 3 4 dispatch ( $ job ) ; 5 app ( Dispatcher :: class ) -> dispatch ( $ job ) ; 6 Bus :: dispatch ( $ job ) ; Since the dispatch function returns and instance of PendingDispatch , we can make adjustments...

Filter Search