php - Problem in root route in laravel 8 Using illuminate
Solution:
When changing anything in any of the config files or the .env you should always run
php artisan config:cache
This will clear your current cache and cache your new settings
Answer
Solution:
change the url in your config/app.php
'url' => env('APP_URL', 'http://localhost'),
and dont forget to run php artisan config:cache
Source