app/Http/Requests/ComentarioRequest.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 [
            'comentario' => 'required|max:500',
            'usuario_id' => 'required|numeric',
            'postagem_id' => 'required|numeric'
        ];
    }
public function rules ( ) { return [ 'comentario' => 'required|max:500' , 'usuario_id' => 'required|numeric' , 'postagem_id' => 'required|numeric' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .