skip to Main Content

i set the prefix in config/database and also in .env and as well in phpmyadmin
but when i access my localhost it shows messages that xyz ,abc,(tables name) doesn’t exsits

2

Answers


  1. You would have to configure the table name in the model as described here

    class Flight extends Model
    {
        /**
         * The table associated with the model.
         *
         * @var string
         */
        protected $table = 'my_flights';
    }
    
    Login or Signup to reply.
  2. You can setup table prefix in config/database.php,

    'prefix' => 'myprefix',
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search