container and invoice api done small api like view invoice traking in order section is remaning

This commit is contained in:
Abhishek Mali
2026-03-13 17:25:58 +05:30
parent c25b468c77
commit bf2689e62d
7 changed files with 155 additions and 103 deletions

View File

@@ -49,10 +49,10 @@ class Invoice extends Model
return $this->hasMany(InvoiceItem::class)->orderBy('id', 'ASC');
}
public function container()
{
return $this->belongsTo(Container::class);
}
// public function container()
// {
// return $this->belongsTo(Container::class);
// }
public function customer()
{
@@ -124,6 +124,10 @@ class Invoice extends Model
{
return $this->status === 'paid';
}
public function container()
{
return $this->belongsTo(\App\Models\Container::class, 'container_id');
}
}