You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
348 B
PHTML

1 year ago
<?php
namespace App\Models;
class Sale extends Model
{
protected $fillable = [
'code',
'date',
'customer_id',
1 year ago
'total'
1 year ago
];
public function customer()
{
return $this->belongsTo(Customer::class);
}
public function items()
{
return $this->hasMany(SaleItem::class);
}
}