remove old models

This commit is contained in:
Ludovic CANDELLIER
2024-01-22 22:52:03 +01:00
parent 0bb75125a7
commit fc5a3186bf
3 changed files with 0 additions and 81 deletions

View File

@@ -1,27 +0,0 @@
<?php
namespace App\Repositories\Shop;
use App\Models\Shop\Price;
use App\Traits\Model\Basic;
class Prices
{
use Basic;
public static function getByArticle($id)
{
return [
'prices' => Price::byArticle($id)->notGeneric()->get()->toArray(),
'generics' => Price::byArticle($id)->generic()->with([
'generic.prices',
'generic.category',
])->get()->toArray(),
];
}
public static function getModel()
{
return Price::query();
}
}