Access the data from Central DB inside tenant domain and vice versa Stancl/Tenancy

PHOTO EMBED

Thu May 16 2024 09:45:58 GMT+0000 (Coordinated Universal Time)

Saved by @codespare

$tenant->run(function ($tenant) {
    return User::all();
});

tenancy()->central(function ($tenant) {
    return User::all();
});
content_copyCOPY