add shipping to order, methods to calculate, little refactoring
This commit is contained in:
@@ -149,6 +149,11 @@ trait Basic
|
||||
return self::getModelRelations($relations, $relationsCount)->withTrashed()->find($id);
|
||||
}
|
||||
|
||||
public static function getAllArray($relations = false, $relationsCount = false)
|
||||
{
|
||||
return self::getAll($relations, $relationsCount)->toArray();
|
||||
}
|
||||
|
||||
public static function getAll($relations = false, $relationsCount = false)
|
||||
{
|
||||
return self::getModelRelations($relations, $relationsCount)->get();
|
||||
|
||||
Reference in New Issue
Block a user