Example #1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create(Request $request)
 {
     $category = Categories::findOrFail($request->cat_id);
     $products = Categories::products($request->cat_id);
     return view('products.create')->with('category', $category)->with('products', $products);
 }