mysql - Create migration in Laravel with and without prefix -


i need create database has tables prefix, tables can't have (legacy tables used in other softwares).

so, let's have 3 tables:

  • user
  • group
  • person

user legacy table, nomenclature should be

  • user
  • myprefix_group
  • myprefix_person

i added prefix in app/config/database.php , app/config/local/database.php. database in mysql.

i'm afraid must manually. create migrations prefixes , add in models

protected $table = 'table_name'; 

Popular posts from this blog