first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
class RouteService
|
||||
{
|
||||
public function isProduction()
|
||||
{
|
||||
return env('APP_ENV') === 'production';
|
||||
}
|
||||
|
||||
public function isStaging()
|
||||
{
|
||||
return env('APP_ENV') === 'staging';
|
||||
}
|
||||
|
||||
public function getPaymentsSubdomain()
|
||||
{
|
||||
$domain = request()->getHost();
|
||||
return $domain;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user