app/Http/Requests/Api/Admin/User/CreateRequest.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
#[ArrayShape(['name' => "string[]", 'email' => "string[]", 'password' => "array"])]
    public function rules(): array
    {
        return [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
            'password' => array_merge($this->passwordRules(), ['max:300']),
        ];
    }
#[ ArrayShape ( [ 'name' => " string[] " , 'email' => " string[] " , 'password' => " array " ] ) ] public function rules ( ) : array { return [ 'name' => [ 'required' , 'string' , 'max:255' ] , 'email' => [ 'required' , 'string' , 'email' , 'max:255' , 'unique:users' ] , 'password' => array_merge ( $ this -> passwordRules ( ) , [ 'max:300' ] ) , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .