app/Http/Controllers/Admin/CouponsController.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::all();
        return view('admin.coupons.index')->with('coupons', $coupons);
    }
public function index ( ) { $ coupons = Coupon :: all ( ) ; return view ( 'admin.coupons.index' ) -> with ( 'coupons' , $ coupons ) ; }
Display a listing of the resource.
Display a listing of the resource .