Add deep relations

This commit is contained in:
Ludovic CANDELLIER
2022-01-14 00:03:21 +01:00
parent 95ca3c6404
commit 050fd76122
13 changed files with 159 additions and 30 deletions

View File

@@ -11,6 +11,11 @@ use App\Models\Shop\PriceList;
class PriceLists
{
public static function getByOffer($offer_id)
{
return PriceList::byOffer($offer_id)->get();
}
public static function getStatus($status_id)
{
return self::getStatuses()[$status_id];