Registierung Korrekturen
This commit is contained in:
parent
8e4bb0c2f6
commit
d8b5206031
70 changed files with 1192 additions and 569 deletions
|
|
@ -112,9 +112,9 @@ class UserShop extends Model
|
|||
return Carbon::parse($this->attributes['active_date'])->format("d.m.Y");
|
||||
}
|
||||
|
||||
public function getSubdomain()
|
||||
public function getSubdomain($session=true)
|
||||
{
|
||||
if(\Session::has('user_shop_domain')){
|
||||
if($session && \Session::has('user_shop_domain')){
|
||||
return \Session::get('user_shop_domain');
|
||||
}
|
||||
return config('app.protocol').$this->attributes['slug'].".".config('app.domain').config('app.tld_care');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue