Skip to content

Commit

Permalink
Merge pull request #6 from mohamadreza1388/main
Browse files Browse the repository at this point in the history
feat(secure): add secure option
  • Loading branch information
BaseMax authored Sep 16, 2024
2 parents b328986 + 28ff4b7 commit 0745682
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public function register(): void
*/
public function boot(): void
{
//
if (env("APP_URL") !== "http://127.0.0.1:8000") {
$this->app['request']->server->set('HTTPS', 'on');
}
}
}

0 comments on commit 0745682

Please sign in to comment.