laravel eloquent return array where 1

laravel eloquent return array where

Foo::select('a')->where('b', 15)->get();

Here is what the above code is Doing:
1. It’s creating a new instance of the Foo class.
2. It’s calling the select() method on the instance.
3. It’s calling the where() method on the instance.
4. It’s calling the get() method on the instance.

Similar Posts