public function brandManagement()
 {
     $page = 'partials.admin-brandManagement';
     $users = User::all();
     $brands = Brand::paginate(8);
     $brands->setPath('');
     return view('quantri/admin', compact('page', 'users', 'brands'));
 }
Example #2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Model $objects)
 {
     return view('admin.brand.list', ['objects' => $objects->paginate(10)]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $brand = Brand::paginate(5);
     return view('brands.index', compact('brand'));
 }