*/ use HasFactory, SoftDeletes; protected $fillable = [ 'customer_id', 'first_name', 'last_name', 'email', 'phone', 'notes', ]; public function getFullNameAttribute(): string { return $this->first_name.' '.$this->last_name; } /** * @return BelongsTo */ public function customer(): BelongsTo { return $this->belongsTo(Customer::class); } }