Add new version in repository

This commit is contained in:
Ludovic CANDELLIER
2021-07-25 23:19:27 +02:00
parent f75632b054
commit b879f11c99
608 changed files with 12235 additions and 7513 deletions

View File

@@ -12,7 +12,6 @@ use App\Models\Shop\ArticleComponent;
class ArticleComponents
{
public static function getDatatable()
{
$model = ArticleComponent::orderBy('name');
@@ -21,7 +20,7 @@ class ArticleComponents
public static function getAll()
{
return ArticleComponent::orderBy('name','asc')->get();
return ArticleComponent::orderBy('name', 'asc')->get();
}
public static function get($id)
@@ -32,7 +31,7 @@ class ArticleComponents
public static function store($data)
{
$id = isset($data['id']) ? $data['id'] : false;
$item = $id ? self::update($data) : self::create($data);
$item = $id ? self::update($data) : self::create($data);
return $item->id;
}
@@ -50,5 +49,4 @@ class ArticleComponents
{
return ArticleComponent::destroy($id);
}
}