Need Help DB Sync plugin
Filament
Database Sync by Teguh Rijanandi - Filament
This package allows to sync two different Laravel Filament app databases.
4 Replies
i think u must try laravel multi tenant
i have implement that for many tenant
if u want sync only two db its can use
stancl/multi tenant
not workingYou provide no info at all. Nobody can help you.
'models' => [
/
* If set to true, the package will
* automatically scan all models in the app/Models directory
*/
'auto_scan' => env('AUTO_SCAN_MODELS', false),
/
* If auto_scan is set to true,
* this configuration will be used to exclude models
* which will not be synced
*/
'excluded' => [
//App\Models\User::class,
],
/
* When auto_scan is set to false,
* this configuration will be used to include models
*/
'included' => [
App\Models\User::class,
],
/
* The column to be used as the key
* when syncing data
*/
'column_as_key' => [
// class => column
'user'=> 'email',
'offices' => 'id',
// or you can use the table name
// table_name => column
// 'users' => 'email',
],
],
i get this TypeError "Cannot use "::class" on string" but when i set auto scan to false, excluded is working.
Check the line that error is thrown (stack trace)