Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $host = MyS3Tool::getS3Path();
     return view('admin.test')->withProduct(Product::find(8))->withHost($host);
 }
Example #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     return view('admin.products.edit')->withProduct(Product::find($id))->withHost(MyS3Tool::getS3Path())->withCategories(Category::all());
 }