Source: mehtamohit80.medium.com

Laravel .env Exposed
When it comes to host a Laravel project on shared hosting, many of the developers finds a difficulty. So they just apply any random solutions from different websites to make their project working without even knowing the consequence of that.

One of the easiest way of Laravel hosting is move all files of public folder to root and make some changes in index.php Once you go with above solution, you are opening doors for the hackers and attackers.

If you have shared hosting and you have less knowledge about server related stuffs then ask you hosting provider to change documentRoot to Laravel’s public folder.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners