app/Http/Controllers/DiscountController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $products = Product::all();
        return view ('admin.create_discount', compact('products'));
    }
public function create ( ) { $ products = Product :: all ( ) ; return view ( 'admin.create_discount' , compact ( 'products' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//Menampilkan halaman untuk menambahkan data diskon