/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $coupons = Coupon::all(); return view('back.coupon.check.index', compact('coupons')); }
public function userIndexCoupon($id) { $coupons = Coupon::all(); $user_id = $id; return view('back.test.user.index_coupon', compact('coupons', 'user_id')); }