Add new version in repository
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user