Voyager: how can i use voyager with existing database with table users that have different fields

Created on 13 Nov 2017  路  2Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.4
  • Voyager Version: 1.0
  • PHP Version: 7.1
  • Database Driver & Version:

Description:

I have database that have many tables and one of these tables is users table that have different fields how can i do override on users table of voyager ?

Steps To Reproduce:

question

All 2 comments

You're free to use whatever table/model you want for users, existing or new, but you may need to customize a few things to get it to work.

Whichever model you choose, for it to work with Voyager, it needs to either implement TCG\Voyager\Contracts\User and use TCG\Voyager\Traits\VoyagerUser OR simply extend TCG\Voyager\Models\User. Additionally, you'll have to make sure both Laravel (config/app.php) and Voyager (config/voyager.php) configs know what model to use.

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

kevinjon27 picture kevinjon27  路  3Comments

winex01 picture winex01  路  3Comments

Nagendra1421 picture Nagendra1421  路  3Comments

craigb88 picture craigb88  路  3Comments

vaggelis2018 picture vaggelis2018  路  3Comments