app/Http/Controllers/CouponController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $coupons=coupon::paginate(7);
        return view('coupon',compact('coupons'));
    }
public function index ( ) { $ coupons = coupon :: paginate ( 7 ) ; return view ( 'coupon' , compact ( 'coupons' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .