<?php $flights = App\Models\Flight::all(); foreach ($flights as $flight) { echo $flight->name; }
/** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = [];