Is this something you added after the app was in production? Are the routes cached on the production server?
Laravel 9 middelware "verified" not working on shared hosting
Hi guys,
On localhost when I use the common; php artisan serve. Everything works fine in Laravel with the verified function. I followed the laravel docs/9.x/verification. The function middelware "verified" on a route works just works fine on localhost. The point is, I login, but I am not verified, so I get redirected to a route with the name "verification.notice".
This is put in the routes/web.php folder. Route::get('/dashboard', function () { return view('dashboard'); })->middleware(['auth', 'verified'])->name('dashboard');
So when I want to go to /dashboard I go to the route name "verification.notice" (/verify-email).
Now on a shared hosting this doesnt work. I just stick on /dashboard... I get no erros, nothing. Its like verified doesnt exist. And yes everything is uploaded the same. So I doubt its something to do with the code?
Also the path on my shared hosting is;
*domain-name
**laravel/all-the-files-of-laravel
**demo/laravel-public-files
Yes, its on a subdomain.
Any of you guys have ideas?
Please or to participate in this conversation.