Skip to content

Commit

Permalink
Get URI instead of just the Host name
Browse files Browse the repository at this point in the history
  • Loading branch information
smartclash committed Nov 23, 2020
1 parent 3b492e6 commit 21edbfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct()

public function handleSubmission($email)
{
$url = request()->header('origin');
$url = request()->getUri();
$account = Account::firstWhere('email', $email);
$website = $account->websites->firstWhere('url', $url);

Expand Down

0 comments on commit 21edbfd

Please sign in to comment.