【发布时间】:2019-07-12 15:09:39
【问题描述】:
您好,我试图将数据保存在 db 中,但它没有保存 ant 说 404|not 找到了
控制器:
DB::table('forms')->insert([
'patient_insurance' => $request->patient_insurance,
'patient_insurance_id' => $request->patient_insurance_id,
'patient_reason' => $request->patient_reason,
'patient_new' => $request->patient_new,
'patient_message' => $request->patient_message,
]);
return back();
路线:
Route::resource('form', 'FormController');
刀片:
<form method="post" action="{{ route('form.store')}}">
型号:
protected $guarded = [];
protected $table = "forms";
protected $fillable=
['patient_name','patient_insurance','patient_insurance_id',
'patient_reason', 'patient_new', 'patient_message'];
任何人都可以告诉我这个问题
【问题讨论】:
-
$ php artisan route:list的发布输出
标签: laravel eloquent laravel-5.8