laravel wheref code example
Example 1: get all data eloquent laravel
Blog::all();
//example usage.
$posts = Blog::all();
Example 2: laravel find query
<?php
$flights = App\Models\Flight::all();
foreach ($flights as $flight) {
echo $flight->name;
}