404 Not Found if use XAMPP

when using “php artisan serve” everything works, if I use xampp for trigger access I get a 404 not found message.
Is there any solution?

when you use artisan serve, do you see public in the urls (no)

when you use xampp do you see public in the urls (yes) ?