app/Http/Requests/PostRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'title'=>'required|max:100|min:3',
            'subject'=>'required|min:3',
            'content'=>'required|max:300',
        ];
    }
public function rules ( ) { return [ 'title' => 'required|max:100|min:3' , 'subject' => 'required|min:3' , 'content' => 'required|max:300' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .