I using Laravel 5.4. Im trying to use dynamic domains like:
Route::group(array('domain' => '{domain}.com'), function (){//routes}
it works well if {domain}
is something like example
or test-domain
but if i wanna try to generate free subdomains or use another free domains like sd1.example
or example.free-domains
, it returns fail: NotFoundHttpException
in RouteCollection.php.
I think it is because of point .
. Laravel cant find .com
maybe? Because if i use
Route::group(array('domain' => '{domain}.free-domain.com'), function (){//routes}
all is OK.
Is there any way to make Laravel look for .com
from the end of string (address)? Or may be another workable solution?
So, I just need to make it possible to use point .
in {domain}
Thank You very much!