app/Http/Requests/StoreUsers.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 [
                 'nombre' => 'required|min:4|max:45',
                 'apellido' => 'required|min:4|max:45',
                 'cargo' => 'required|min:4|max:45',
                 'email' => 'required|unique:users,email|email|max:115',
                 'horas_disponible' => 'required',
                 'password' => 'required',
                 'roles_id' => 'required',
                 'areas_id' => 'required',
        ];
    }
public function rules ( ) { return [ 'nombre' => 'required|min:4|max:45' , 'apellido' => 'required|min:4|max:45' , 'cargo' => 'required|min:4|max:45' , 'email' => 'required|unique:users,email|email|max:115' , 'horas_disponible' => 'required' , 'password' => 'required' , 'roles_id' => 'required' , 'areas_id' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .