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

Fix exempt routes, explain them in README

This commit is contained in:
Samuel Štancl 2019-01-19 16:29:55 +01:00
parent 7b95a9a4cd
commit a9750ee6d8
2 changed files with 11 additions and 6 deletions

View file

@ -22,10 +22,6 @@ class InitializeTenancy
*/
public function handle($request, Closure $next)
{
if (in_array($request->getHost(), config('tenancy.exempt_domains', []))) {
return $next($request);
}
try {
tenancy()->init();
} catch (\Exception $e) {