I registered an error message but I don't know how to output it
WorkController.php
public function store(CreateWorkRequest $request,$id)
{
$v = $request->WorkRequest();
return redirect()->route('work.index', ['id' => $id]);
}
CreateWorkRequest
public function rules()
{
return [
'work_time' => 'required',
'content' => 'required',
];
}
public function messages() {
return [
'work_time' => ':Required',
'content ' => ':Required',
];
}
I would like to know where to edit
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2km76TD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire