Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfaramarzi committed Jul 5, 2021
1 parent 8867141 commit ba63a60
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,23 @@ public function except(array $keys): mixed

public function url(): string
{
return '//' . $this->host() . $this->path();
if (env("APP_SSL", false) == true) {
$protocol = 'https://';
} else {
$protocol = 'http://';
}

return $protocol . $this->host() . $this->path();
}

public function fullUrl(): string
{
return '//' . $this->host() . $this->uri();
if (env("APP_SSL", false) == true) {
$protocol = 'https://';
} else {
$protocol = 'http://';
}

return $protocol . $this->host() . $this->uri();
}
}

0 comments on commit ba63a60

Please sign in to comment.