You should set your document root to laravel/public rather than use .htaccess to patch around that, otherwise all of laravels files as well as the app/storage/sessions will be available to the public web.
An alternative to changing your document root (if you don't have access to) is to install laravel above the document root (say your home folder) copy the contents of the public folder into your document root and edit the require paths in index.php and bootstrap/paths.php accordingly.
Either method will both fix your problem and install laravel securely.
Excellent answer.
Problem solved.
Thank you!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community