cleanup
This commit is contained in:
parent
3e66320d8b
commit
7a141f2631
1 changed files with 1 additions and 2 deletions
|
|
@ -28,9 +28,8 @@ class SubdomainController extends BaseController
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
$subdomain_exists = MultiDB::findAndSetDbByDomain(request()->input('subdomain'));
|
||||
|
||||
if($subdomain_exists)
|
||||
if( MultiDB::findAndSetDbByDomain(request()->input('subdomain')) )
|
||||
return response()->json(['message' => 'Domain not available'] , 401);
|
||||
|
||||
return response()->json(['message' => 'Domain available'], 200);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue