Showing 10 of 1,204 results.

Laravel Application Helper Function: factory

…// Return an instance of the 'User' model. 4 $ user = factory ( ' App\User ' ) -> make ( ) ; 5 6 // Return two instances of the 'User' model. 7 $ users = factory ( ' App\User ' , 2 ) -> make ( ) ; 8 9 // Return one instance of the 'User' model,...

Laravel 5.5 String Helper Function: after

The after method can be used to return a part of a string after the first occurrence of a $search character. This method can be used to help parse URL query strings, or to quickly find substrings based on a certain character.The signature of the...

Laravel Collection Public API: lists

lists($value, $key = null) The lists method is an alias of the pluck method. The lists method is used to retrieve the a list of values from the collection. It defines two parameters: $value and $key . The $value indicates which property should...

Filter Search