laravel make 3arequest messages

Solutions on MaxInterview for laravel make 3arequest messages by the best coders in the world

showing results for - "laravel make 3arequest messages"
Juan
28 Nov 2016
1public function rules()
2{
3    return [
4        'title' => 'required|unique:posts|max:255',
5        'body' => 'required',
6    ];
7}
8
9public function messages()
10{
11    return [
12        'title.required' => 'A title is required',
13        'body.required' => 'A message is required',
14    ];
15}