Laravel replaces the connection parameter with the default one
I have a model with a connection parameter to a different database. class User extends Model { protected $connection = 'main_database'; } When I save the model the connection is returning to default application connection which is named "mysql". It…