select where query in laravel code example
Example 1: Laravel query where and
Table::where('Column', Value)->where('NewColumn', Value)->get();
Example 2: laravel find query
$model = App\Models\Flight::where('legs', '>', 100)
->firstOr(['id', 'legs'], function () {
// ...
});