Check your ui version is correct. Also check laravel change logs to see routing changes.
Laravel 8 - web.php not working
Using Laragon (Windows 10) I created a new Laravel project which installs the latest version.
I then went through the process of implementing Laravel UI, as I have done before without a problem.
1 composer require laravel/ui 2 php artisan ui vue --auth 3 npm install && npm run dev 4. php artisan migrate
But the starting page doesn't change. After exploring, I realized that the problem may be in the routing in web.php. For example, I tried the following in web.php:
Route::get('/', function () { // return view('welcome'); dd('got here'); });
Route::get('/testit', function() { dd('testing'); });
The '/' route still goes to the Laragon start page rather than the dd(). The '/testit' route comes back with a 404 error.
Something's wrong with the configuration, but I don't know what it is. I know there were changes to Laravel 8 routing, but don't know if that has anything to do with it.
What used to work when setting up a new project doesn't seem to work anymore.
Any ideas what's going wrong?
Thank you.
@Max100 did you reload the apache after installing the project?
Perhaps show some screenshots will help.
Please or to participate in this conversation.