We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 441f39e commit ee76b71Copy full SHA for ee76b71
app/Providers/AppServiceProvider.php
@@ -2,6 +2,7 @@
2
3
namespace App\Providers;
4
5
+use Illuminate\Support\Facades\URL;
6
use Illuminate\Support\ServiceProvider;
7
8
class AppServiceProvider extends ServiceProvider
@@ -19,5 +20,9 @@ public function register(): void
19
20
*/
21
public function boot(): void
22
{
23
+ if ($this->app->environment('local')) {
24
+ URL::forceRootUrl(env('APP_URL'));
25
+ URL::forceScheme('https');
26
+ }
27
}
28
0 commit comments