Add Notes model, controller and database table. Implement it in Customer Dialog, #6
This commit is contained in:
@@ -27,7 +27,6 @@ class Customer extends Model
|
||||
'billing_address',
|
||||
'payment_terms_id',
|
||||
'status',
|
||||
'notes',
|
||||
'logo',
|
||||
];
|
||||
|
||||
@@ -96,4 +95,12 @@ public function paymentTerms()
|
||||
{
|
||||
return $this->belongsTo(PaymentTerms::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notes for the customer
|
||||
*/
|
||||
public function notes()
|
||||
{
|
||||
return $this->morphMany(Note::class, 'notable');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user