id=1 laravel code example Example: laravel find query foreach ($flights as $flight) { echo $flight->name; }