all products page
This commit is contained in:
parent
620bb251b0
commit
b8d3be88bf
2 changed files with 13 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ class ProductsController extends Controller
|
|||
|
||||
public function allProducts(Request $request) {
|
||||
//do better
|
||||
return view ('ranges');
|
||||
$products = Product::where('status', 1)->paginate(12);
|
||||
return view ('search', compact('products'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
11
resources/views/front/canard/search.blade.php
Normal file
11
resources/views/front/canard/search.blade.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Tous les produits'))
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('partials.products-list')
|
||||
|
||||
@include('partials.ranges-slider')
|
||||
|
||||
@endsection
|
||||
Loading…
Add table
Reference in a new issue