app/Http/Controllers/DiscountController.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()
    {
        $discount = Discount::all();
        return view ('admin.read_discount_list',compact (['discount']));
    }
public function index ( ) { $ discount = Discount :: all ( ) ; return view ( 'admin.read_discount_list' , compact ( [ 'discount' ] ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//Menampilkan daftar diskon