18
common/Domains/CustomDomainsEnabled.php
Executable file
18
common/Domains/CustomDomainsEnabled.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Domains;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class CustomDomainsEnabled
|
||||
{
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
if ( ! config('common.site.enable_custom_domains')) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user