Fix new site creating new site_uri
This commit is contained in:
parent
94b50bea3e
commit
19a1a2b6c7
@ -34,7 +34,9 @@ public function main()
|
|||||||
$s->active = FALSE;
|
$s->active = FALSE;
|
||||||
$s->save();
|
$s->save();
|
||||||
|
|
||||||
$u = SiteUri::firstOrNew(['uri'=>request()->getRequestUri()]);
|
$u = new SiteUri;
|
||||||
|
$u->uri = request()->getRequestUri();
|
||||||
|
$u->active = FALSE;
|
||||||
$u->hits = 1;
|
$u->hits = 1;
|
||||||
$s->uris()->save($u);
|
$s->uris()->save($u);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user