remove old models
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user