gtcrais / laravel-app-bootstrap
Application Bootstrap for Laravel 5.4+
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 119
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gtcrais/laravel-app-bootstrap
Requires
This package is auto-updated.
Last update: 2025-04-09 23:47:08 UTC
README
This is a simple bootstrapping package for Laravel 5.4+ (it may work on 5.3 but it hasn't been tested) designed around my personal preferences, so it might not suit everyone, but you are welcome to fork it and adjust it to your needs.
Use this package exclusively on a fresh Laravel installation, as it will rewrite config options in app.php and database.php.
What it does:
- pulls in Laravel IDE Helper and Cascading Config packages
- generates IDE helper file and
localdevenvironment files (/config.localdev/...) - replaces
env()calls in/config/app.phpand/config/database.phpwith strings (the latter being fully overwritten) - adds
/bootstrap/env.phpfile and deletes.envfile, effectively disposing ofDotEnvusage in your application.
You should not use DotEnv in production. Personally, I prefer not to use it at all, and much prefer cascading config over it. Thank you @Phan An - prompts user for application info and sets appropriate config options, and creates the database
Installation
Use exclusively on a fresh Laravel installation.
- add
"gtcrais/laravel-app-bootstrap": "1.3.*"to yourcomposer.jsonand runcomposer update - for Laravel 5.4 add
GTCrais\LaravelAppBootstrap\LaravelAppBootstrapServiceProvider::class,to providers array in/config/app.php - run
php artisan lab:setup - fill in data about your application
Your application is now set up, and using localdev environment.
Notes
- Laravel App Bootstrap assumes your're using
MySQLonlocalhost, port3306. If this is not the case, after bootstrapping you'll need to adjust your database config options and manually create the database. - since getting rid of
.envfile obviously breaksphp artisan key:generatecommand, Laravel App Bootstrap provides a substitution:lab:key-generate
License
Laravel App Bootstrap is open-sourced software licensed under the MIT license.