Support the ongoing development of Laravel.io →
posted 3 years ago
Laravel
Last updated 2 years ago.
0

Hey,

a general overview of the steps that you'd have to go through to connect both systems together:

  • Add the additional database connection to your config/database.php file and load the values of the additional database from the .env file.
  • Create models for the database tables in the job system and set the table and database using $table and $connection variables in your model. $connection should reflect the name of your additional database that you specified in the step before.
  • Create custom controllers that use the new models and select items from the database.
  • Create custom views to output the results from your queries in the new controller.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Chris christophome Joined 29 Jul 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.