Showing 10 of 1,280 results.

Example Use | Laravel 5.5 String Helper Method: contains

1 use Illuminate \ Support \ Str ; 2 3 // These are our $needles we want to check for. 4 $ needles = [ ' a ' , ' p ' , ' l ' , ' e ' , ' s ' ] ; 5 6 // true 7 Str :: contains ( ' apples ' , $ needles ) ; 8 9 // false 10 Str :: contains ( ' APPLES...

The Hash Facade | Laravel's Bcrypt Hasher

Laravel provides many facades to make it easier to quickly build application and test ideas. One such facade is the Illuminate\Support\Facades\Hash facade, which provides access to whatever implementation is bound to the...

Example Use | Laravel 5: Adding Elements to the Array with add

Consider the following code snippet: 1 use Illuminate \ Support \ Arr ; 2 3 $ myArray = [ 4 ' animal ' => ' Araripe Manakin ' , 5 ' plant ' => ' Pineland Wild Petunia ' 6 ] ; 7 8 $ myArray = Arr :: add ( 9 $ myArray , 10 ' insect ' , 11 '...

Filter Search