- $collection = collect ( [ [ ‘score’ = > ‘3’ ] , [ ‘score’ = > 3 ] ] ) ; // Loose comparison by default $collection → where ( ‘score’ , 3 ) ; // returns [[‘score’ => ‘3’], [‘score’ => 3]] $collection → where ( ‘score’ , ‘=’ , 3 ) ; $collection → where ( ‘score’ , ‘==’ , 3 ) ; // returns [[‘score’ => ‘3’], [‘score’ => 3]] $collection → where ( ‘score’ , ‘===’ , 3 ) ; // returns [[‘score’ => 3]]
- The method has quite a lot of issues and also makes routes definitions confusing as they are not directly referenced in routes file.
- The Query Builder returns a collection
- The lists() method is also removed from ELoquent Builder, Query Builder, and Collections.
- It’s more likely that this method will be available as a package, so it’s up to you to decide if you’re going to keep using it or switch to using explicit route definitions if you decided to switch it’s better to start now.

@dunebook: “Features Expected in laravel 5.3 #laravel #php #geek #angularjs #java #html5 #css #new #javascript #typescript #js” open tweet »