render invoice in pdf

This commit is contained in:
ludo
2024-01-07 23:16:29 +01:00
parent 4df8628a3e
commit 560ef61c9f
8 changed files with 236 additions and 4 deletions

View File

@@ -48,6 +48,11 @@ class Order extends Model
return $this->belongsTo(SaleChannel::class);
}
public function scopeByID($query, $id)
{
return $query->where('id', $id);
}
public function scopeByUUID($query, $uuid)
{
return $query->where('uuid', $uuid);