SQLSTATE[HY000]: General error: 1364 Field 'product_name' doesn't have a default value
all(); // $product=new product(); // $product->product_name=$data['pro_name']; / // $product->description=$data['description']; // $product->Starting_Date_and_Time=$data['SDAT']; // $product->Ending_Date_and_Time=$data['EDAT']; // $product->save(); $product = product::create($data); dd($product); } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { // } /** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { return view('product.edit'); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { // } /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { return 'product delete'; } }via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire