[WIP] Refactor generic & normal price

This commit is contained in:
Ludovic CANDELLIER
2020-08-31 23:23:55 +02:00
parent c9198de890
commit c025dbb385
18 changed files with 267 additions and 32 deletions

View File

@@ -29,6 +29,13 @@ class PriceGenerics
return Datatables::of($model)->make(true);
}
public static function getOptions()
{
$model = PriceGeneric::with('category')->get()->toArray();
dump($model);
exit;
}
public static function getAll()
{
return PriceGeneric::orderBy('name','asc')->get();