1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 21:14:03 +00:00

Remove redundant method in the RouteSP

This commit is contained in:
Samuel Štancl 2019-01-26 13:08:39 +01:00
parent b238b10166
commit a9e3f4052c

View file

@ -8,11 +8,6 @@ use Illuminate\Foundation\Support\Providers\RouteServiceProvider;
class TenantRouteServiceProvider extends RouteServiceProvider
{
public function map()
{
$this->mapTenantRoutes();
}
protected function mapTenantRoutes()
{
if (! in_array(request()->getHost(), $this->app['config']['tenancy.exempt_domains'] ?? [])) {
Route::middleware(['web', 'tenancy'])