app/Http/Requests/ProfessorRequest.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 [
            'nome' => 'required',
            'data_nascimento' => 'required',
            'telefone' => 'required',
            'sexo' => 'required',
            'email' => 'email',
            'endereco' => 'required',
            'login' => 'required',
            'senha' => 'required|min:3',
        ];
    }
public function rules ( ) { return [ 'nome' => 'required' , 'data_nascimento' => 'required' , 'telefone' => 'required' , 'sexo' => 'required' , 'email' => 'email' , 'endereco' => 'required' , 'login' => 'required' , 'senha' => 'required|min:3' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .