Model
class Flight extends Model
{
protected $fillable = ['name'];
public $name;
}
In the controller
Flight::create(['name' => 'test']);
$flight = new Flight();
$flight->name = 'John'; //echo $flight->name 'John' it works
$flight->save();
The mass assignment creation works, however the method ->save() stores a null value for the object. I don't understand what I'm doing wrong. Please help!