First make sure you already create Laravel 10 project, see Laravel 10 Installation Guide.
This is useful to make your url accessible without navigating to /public
folder.
-
Create a
.htaccess
file and put it in your root folder of your project with the content below.# this file must be in the root directory of your project