lint on product Controller
This commit is contained in:
parent
817ffa68fc
commit
0d1f135616
1 changed files with 10 additions and 10 deletions
|
|
@ -66,11 +66,11 @@ class ProductController extends Controller
|
|||
public function create(Product $productModel): \Illuminate\Contracts\View\View
|
||||
{
|
||||
//phpcs:enable
|
||||
$brands = Brand::get();
|
||||
$productsFair = Product::pluck('fair');
|
||||
$productsShop = Product::pluck('shop');
|
||||
$productsCatalog = Product::pluck('catalogue');
|
||||
$keywords = Keyword::where('keyword_cat', 'product_pleasure')
|
||||
$brands = Brand::all();
|
||||
$productsFair = Product::query()->pluck('fair');
|
||||
$productsShop = Product::query()->pluck('shop');
|
||||
$productsCatalog = Product::query()->pluck('catalogue');
|
||||
$keywords = Keyword::query()->where('keyword_cat', 'product_pleasure')
|
||||
->orWhere('keyword_cat', 'product_shape')
|
||||
->orWhere('keyword_cat', 'product_practicality')
|
||||
->orWhere('keyword_cat', 'product_health')
|
||||
|
|
@ -126,12 +126,12 @@ class ProductController extends Controller
|
|||
*/
|
||||
public function edit(Product $product)
|
||||
{
|
||||
$brands = Brand::get();
|
||||
$productsFair = Product::pluck('fair');
|
||||
$productsShop = Product::pluck('shop');
|
||||
$productsCatalog = Product::pluck('catalogue');
|
||||
$brands = Brand::all();
|
||||
$productsFair = Product::query()->pluck('fair');
|
||||
$productsShop = Product::query()->pluck('shop');
|
||||
$productsCatalog = Product::query()->pluck('catalogue');
|
||||
$commentModel = $product->productComments;
|
||||
$keywords = Keyword::where('keyword_cat', 'product_pleasure')
|
||||
$keywords = Keyword::query()->where('keyword_cat', 'product_pleasure')
|
||||
->orWhere('keyword_cat', 'product_shape')
|
||||
->orWhere('keyword_cat', 'product_practicality')
|
||||
->orWhere('keyword_cat', 'product_health')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue