© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
daisy21

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';
protected $connection = 'mysql2';
Solution
yes if you didn't define the connection it will use the default
mysql
mysql
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament Database Notifications
FilamentFFilament / ❓┊help
3y ago
Filament base address setting?
FilamentFFilament / ❓┊help
16mo ago
Add spatie multi tenancy integration to filament v3 (Multiple database)
FilamentFFilament / ❓┊help
3y ago
FilamentBreezy Error on Multiple Panel
FilamentFFilament / ❓┊help
2y ago