I am new to livewire, I tried following the docs and was able to install livewire. I didn’t want to use php artisan serve so i had to remove the Server.php file, move the .htaccess and the index.php file from the public folder to the root folder. i made some few changes to the index.php file. require DIR.’/vendor/autoload.php’; and $app = require_once DIR.’/bootstrap/app.php’;. I also made changes to the config/app file
‘url’ => env(‘APP_URL’, ‘http://localhost’), and ‘asset_url’ => env(‘ASSET_URL’, ‘/application/public’),. Livewire component was created and and the route too. The problem is when i set the route to Route::get(“https://stackoverflow.com/”,AddUser::class)->name(‘add.user’); the wire:model works fine but when i change the route to Route::get(‘/add-user’,AddUser::class)->name(‘add.user’); I get 404 error
I have cleared the config and application cache but still not working.
I need help