laravel-forum: Installation on a multi-site points to the wrong db for posts
Hi I am using a multi-site installation where a COMMON_DB_DATABASE is used to provide authentication/session across multiple laravel installations. Then I have a DB_DATABASE which local to the laravel app where laravel-forum is installed. After running the migration, all laravel-forum tables were installed in the DB_DATABASE. However, I can create new categories. However, when I create a new post under a cateogry or try to view it, it points me to the COMMON_DB_DATABASE. I get the following error
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'commondb.forum_threads_read' doesn't exist (SQL: select `users`.*, `forum_threads_read`.`thread_id` as `pivot_thread_id`, `forum_threads_read`.`user_id` as `pivot_user_id`, `forum_threads_read`.`created_at` as `pivot_created_at`, `forum_threads_read`.`updated_at` as `pivot_updated_at` from `users` inner join `forum_threads_read` on `users`.`id` = `forum_threads_read`.`user_id` where `forum_threads_read`.`thread_id` = 1 and `forum_threads_read`.`user_id` = 1 limit 1)
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 15
I think I’ll need to take some time to try and reproduce your setup and experiment with it. I’ll get back to you when I have more info.