SETTING MULTIPLE DATABASE FILAMENT
is it possible to use 2 different database for a filament project?
ex : i have a filament project A and B now i want to make filament B have its own DB but still uses A's to view some of its tables. can filament understand which connection the model uses if i use this in the model? .
protected $connection = 'mysql2';
5 Replies
"can filament understand "
yes it should work
do i need to define $connection on each model now? or it will use default
'mysql'
if i dont define the $connection varSolution
yes if you didn't define the connection it will use the default
mysql
thanks will mark as solved for now