Answer Posted / Smriti Chauhan
1. Configure your database connection in the `config/db.php` file.
2. In your application or module's configuration (`config/main.php` or `config/module.php`), ensure that 'components' => ['db'] is included, and specify the connection ID used in step 1.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers