thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

General error: 1364 Field 'username' doesn't have #5400

Closed ahmetbarut closed 3 years ago

ahmetbarut commented 3 years ago

Version information

Description:

Hi, I have a column named username in my users table. When I create a new user from Voyager the username is not added correctly. I added it from the template section, but it was not added. I did a search and couldn't find any results.

Additional context


                            <div class="form-group">
                                <label for="username">{{ __('username') }}</label>
                                <input type="text" class="form-control" id="username" name="username"
                                       placeholder="{{ __('username') }}"
                                       value="@if(isset($dataTypeContent->username)){{ $dataTypeContent->username }}@endif">
                            </div>
pro-cms commented 3 years ago

@ahmetbarut Make sure you have a username column in the database.

then go to voyager tools----> Move to bread---->click edit on users bread---->go and look for username section and make sure to check the BROWSE, EDIT, DELETE AND UPDATE checkboxes and then save.

This will kinda refresh the voyager bread system and your problem should be fixed. Capturedddddddddddddddddddddd

ahmetbarut commented 3 years ago

Thanks @pro-cms. I solved the problem in another way. I'm closing the issue for now

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.