where query this laravel code example
Example 1: Laravel query where and
Table::where('Column', Value)->where('NewColumn', Value)->get();
Example 2: laravel find query
<?php
$flights = App\Models\Flight::all();
foreach ($flights as $flight) {
echo $flight->name;
}