0
votes

I use laravel9 and the problem seems to be in the route because it is giving me a 404 error in the browser for some reason idk...it was working fine till I run the "php artisan route:cache" command (I did that cz I couldn't find the index and store functions for visit in routes list and they are now there but not functional)after this it couldnt access the routes ...how should i fix it??? I need help ASAP:( code for the web.php is below

<?php
    
    use Illuminate\Support\Facades\Route;
    use Illuminate\Support\Facades\LaravelLocalization; 
    use App\Http\Controllers\Admin\UserController;
    use App\Http\Controllers\Receptionists\ReceptionistController;
    use App\Http\Controllers\staffs\StaffController;
    use App\Http\Controllers\HomeController;
    use App\Http\Controllers\VisitController;
    
    Route::group([
    
        'prefix'=>LaravelLocalization::setLocale(),
         'middleware'=>['localeSessionRedirect','localizationRedirect','localeViewpath']
    
    ],function()
    {
    
    Route::group(['middleware' => 'auth'], function() {
       
        
         Route::get('/',[HomeController::class,'index'])->name('dashboard');
    
       
    
        Route::resources([
            'admin-users'  => UserController::class,
    
            'visit'  => VisitController::class,
    
        ]);
    
    });
    });