restart
This commit is contained in:
@@ -11,9 +11,10 @@ class Deliveries
|
||||
return Delivery::orderBy('name', 'asc')->get()->pluck('name', 'id')->toArray();
|
||||
}
|
||||
|
||||
public static function getAll()
|
||||
public static function getAll($relations = false)
|
||||
{
|
||||
return Delivery::orderBy('name', 'asc')->get();
|
||||
$model = $relations ? Delivery::with($relations) : Delivery::query();
|
||||
return $model->orderBy('name', 'asc')->get();
|
||||
}
|
||||
|
||||
public static function getAllWithSaleChannel()
|
||||
|
||||
Reference in New Issue
Block a user