refactoring on Articles, minor fixes

This commit is contained in:
ludo
2024-01-21 11:42:42 +01:00
parent 560ef61c9f
commit 116f289285
21 changed files with 467 additions and 367 deletions

View File

@@ -6,6 +6,7 @@ use App\Datatables\Admin\Shop\ArticlesDataTable;
use App\Http\Requests\Admin\Shop\StoreArticlePost;
use App\Repositories\Shop\ArticleNatures;
use App\Repositories\Shop\Articles;
use App\Repositories\Shop\ArticleInherited;
use App\Repositories\Shop\Categories;
use App\Repositories\Shop\Tags;
use Illuminate\Http\Request;
@@ -71,7 +72,7 @@ class ArticleController extends Controller
{
$data = [
'article' => [
'inherited' => Articles::getInheritedByProduct($productId, base64_decode($model)),
'inherited' => ArticleInherited::getInheritedByProduct($productId, base64_decode($model)),
],
];
@@ -80,7 +81,7 @@ class ArticleController extends Controller
public function getProductTags($productId, $model)
{
$data = Articles::getInheritedByProduct($productId, base64_decode($model));
$data = ArticleInherited::getInheritedByProduct($productId, base64_decode($model));
return view('Admin.Shop.Articles.partials.product.tags', $data);
}