Voyager: How to added another input in /admin/users/create voyager?

Created on 19 May 2018  路  5Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.4.#
  • Voyager Version: 1.1.1
  • PHP Version: 7
  • Database Driver & Version: Mysql 5.7.19 / HeidiSql

Description:

I'm a big beginer with laravel and voyager
I have already added phone_number column to my users table in my database but I want the admin to create users himself and i want him to set the phone numbers by himself
any idea how can I added a new input in this page please? /admin/users/create voyager?

Steps To Reproduce:

question

Most helpful comment

Voyager overrides the users/edit-add view, thats why just adding fields through the BREAD-manager isn't enough.
You need to override the view (take this file as reference)
You can find a howto override views in our docs.

Also please dont use latest for version fields.

All 5 comments

Voyager overrides the users/edit-add view, thats why just adding fields through the BREAD-manager isn't enough.
You need to override the view (take this file as reference)
You can find a howto override views in our docs.

Also please dont use latest for version fields.

Updated
Thanks for you fast answer

Same answer of this one right? #1317

In short: copy vendor/tcg/voyager/resources/views/users/edit-add.blade.php to resources/views/vendor/voyager/users/edit-add.blade.php and make the needed changes.

Closing as the question is answered.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raoasifraza1 picture raoasifraza1  路  3Comments

rayqiri picture rayqiri  路  3Comments

wp-src picture wp-src  路  3Comments

popica80 picture popica80  路  3Comments

craigb88 picture craigb88  路  3Comments