laravel get current domain name code example
Example 1: laravel get current domain
request()->getHost();
Example 2: laravel get current route name
Route::getCurrentRoute()->getActionName();
request()->getHost();
Route::getCurrentRoute()->getActionName();