controller laravel not sync with fillable code example
Example 1: what is actullay work model in laravel
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = [];
Example 2: what is actullay work model in laravel
<?php
$flights = App\Models\Flight::all();
foreach ($flights as $flight) {
echo $flight->name;
}