Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Testimoni::find($id)->delete();
     return redirect('/admin/testimoni');
 }
Example #2
0
 public function product()
 {
     $data = array('brand' => Brand::all(), 'barang' => Product::paginate(15), 'cart' => Cart::content(), 'total' => Cart::total(), 'download' => Download::limit(3)->offset(0)->get(), 'testimoni' => Testimoni::limit(10)->offset(0)->get());
     return view('front.product', compact('data'));
 }