fix: add Notifiable trait to Supplier and Customer, add null guards to notification messages

This commit is contained in:
ghassan committed 2026-05-19 13:29:28 +03:00
1 parent 2d54c670de
commit add011790c
6 files changed
+8 -6

No files matched your search

+2 -1
View File
@@ -4,10 +4,11 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class Customer extends Model
{
use HasFactory;
use HasFactory, Notifiable;
protected $fillable = ['name', 'contact_person', 'email', 'phone', 'whatsapp_number', 'address', 'tax_number', 'credit_limit', 'outstanding_balance', 'is_active'];