Closed julios54-zz closed 4 years ago
Purpose I wanted to create a client, but I had no way to add phone number on client contact, except the way to override Client model
Goal Be able to call method create() on models
$client = Client::create(); $client->name = 'Client name'; $client->addContact('humbert.julien54@gmail.com', 'Julien', 'HUMBERT', 'Phone number'); $client->save();
Changes Static create method on AbstractModel to bypass models constructors Add phone on client contact method
Looks good, thanks!
Purpose I wanted to create a client, but I had no way to add phone number on client contact, except the way to override Client model
Goal Be able to call method create() on models
Changes Static create method on AbstractModel to bypass models constructors Add phone on client contact method