<?php
namespace App\Utils;
class Domains {
static function getDomain($url) {
$sourceUrl = parse_url($url);
return $sourceUrl['host'];
}