Ready-to-use scripts to deploy your Laravel projects fast, secure, and professionally!
- π― One-Click Setup - Get rid of complex commands
- π Security-Focused - Single-run lock mechanism
- π¨ Professional Interface - Colorful HTML output
- β‘ Performance - 10-20x speed boost
- π Error Handling - Detailed error reporting
- π¦ Easy Maintenance - Single file, no dependencies
| Script | Purpose | Environment | Documentation |
|---|---|---|---|
| install.php | Initial setup (key, storage, migration) | New Project | π Details |
| update.php | Update + Migration | Production Deploy | π Details |
| clear-cache.php | Cache clearing | Development | π Details |
| refresh-cache.php | Cache refresh | Production | π Details |
# 1. Download the script
wget https://raw.githubusercontent.com/isousluer/laravel-deployment-scripts/main/scripts/install.php
# 2. Move to public/ directory
mv install.php public/
# 3. Run from browser
https://yourdomain.com/install.php
# 4. Delete the file
rm public/install.php# After code update
wget https://raw.githubusercontent.com/isousluer/laravel-deployment-scripts/main/scripts/update.php
mv update.php public/
https://yourdomain.com/update.php
rm public/update.php# For performance optimization
wget https://raw.githubusercontent.com/isousluer/laravel-deployment-scripts/main/scripts/refresh-cache.php
mv refresh-cache.php public/
https://yourdomain.com/refresh-cache.php
rm public/refresh-cache.php- π Installation Guide
- π Update Guide
- π Cache Clearing Guide
- π Cache Refresh Guide
1. Git clone
2. composer install
3. .env configuration
4. Run install.php β This script!1. git pull
2. composer install --no-dev
3. Run update.php β This script!1. Changed config but not working?
2. Run refresh-cache.php β This script!- β Scripts run only once (install.lock mechanism)
- β Delete after use
- β
Add to
.gitignore - β Don't leave in production
- β Contains no sensitive data
# Deployment Scripts
public/install.php
public/update.php
public/clear-cache.php
public/refresh-cache.php
public/install.lock| Status | Response Time | Cache |
|---|---|---|
| β No Cache | 150-200ms | None |
| β With Cache | 10-20ms | Active |
| Difference | 10-20x Faster | refresh-cache.php |
- PHP 8.0 or higher
- Laravel 9.0 or higher
- Composer dependencies installed
- Active database connection
- Web server (Apache/Nginx)
# Disable cache
CACHE_DRIVER=array
VIEW_COMPILED_PATH=false
# Clear when needed
clear-cache.php# Deploy workflow
1. php artisan down
2. git pull
3. composer install --no-dev --optimize-autoloader
4. update.php or refresh-cache.php
5. php artisan queue:restart
6. php artisan upWe welcome your contributions! Please read CONTRIBUTING.md.
- π΄ Fork it
- π± Create feature branch (
git checkout -b feature/amazing) - πΎ Commit changes (
git commit -m 'Add amazing feature') - π€ Push to branch (
git push origin feature/amazing) - π Open Pull Request
Found a bug? Open an issue!
- π Bug Report
- π‘ Feature Request
All notable changes are documented in CHANGELOG.md.
This project is licensed under the MIT License.
Thanks to everyone who starred, forked, and contributed to this project!
- π Laravel Documentation
- π¬ Discussions
- π¦ Twitter
Have questions? Send an email
Made with β€οΈ by Δ°smail Usluer