Laravel Deployment Guide

🚀 Quick Laravel Deployment Guide (Hostinger / Shared Hosting)

Upload your Laravel project to Hostinger (ZIP or Git).

Move all files (except /public) into a folder like /laravel_app.

Copy contents of /public → public_html/.

Edit public_html/index.php:

require __DIR__.'/../laravel_app/vendor/autoload.php';
$app = require_once __DIR__.'/../laravel_app/bootstrap/app.php';


Edit .env with real DB credentials.

Run (via SSH or local before upload):

composer install --optimize-autoloader --no-dev
php artisan key:generate
php artisan migrate --force
php artisan storage:link


Set permissions: chmod -R 755 storage bootstrap/cache

Done ✅