Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $categories = Categories::paginate(9);
     $allCats = Categories::all();
     return view('admin.product.categories.index', compact('categories'))->with('allCats', $allCats);
 }
Пример #2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $categories = Categories::paginate('10');
     return view('categories.index')->with('categories', $categories);
 }