lundi 2 septembre 2019

I want to issue a validation error message

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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire