We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, How can i organise web.php routs and judge which tenant in controller for url 'boise.townhouse.dev/show'. I have no idea to handle Hyn\Tenancy!
thank you!
The text was updated successfully, but these errors were encountered:
And where can i find tenant`s config of db connection ?
Sorry, something went wrong.
@singler009 tenant configuration for the database are created on the fly.
In RouteServiceProvider.php
public function map(Router $router) { ..... **$this->mapTenantRoutes($router);** ..... } protected function mapTenantRoutes(Router $router) { $router->middleware(['web', 'tenancy.enforce']) ->domain('{account}.yourapphostname') ->namespace($this->namespace) ->as('tenant.') ->group(base_path('routes/tenant/mytenantroutes.php')); }
In mytenantroutes.php:
use Illuminate\Support\Facades\Route; Route::group(['prefix' => 'profile'], function () { Route::get('/', 'MyControllerController@action')->name('controller.action'); });
No branches or pull requests
Hello, How can i organise web.php routs and judge which tenant in controller for url 'boise.townhouse.dev/show'.
I have no idea to handle Hyn\Tenancy!
thank you!
The text was updated successfully, but these errors were encountered: