diff --git a/.env.example b/.env.example index b11e49f7..d3a86cd4 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,6 @@ APP_ENV=local APP_DEBUG=true +APP_URL=http://localhost APP_KEY=SomeRandomString DB_DRIVER=sqlite diff --git a/config/app.php b/config/app.php index e2eb60b2..9b10f287 100644 --- a/config/app.php +++ b/config/app.php @@ -35,7 +35,7 @@ return [ | */ - 'url' => 'http://localhost', + 'url' => env('APP_URL', 'http://localhost'), /* |--------------------------------------------------------------------------