Download the PHP package gtcrais/laravel-app-bootstrap without Composer
On this page you can find all versions of the php package gtcrais/laravel-app-bootstrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gtcrais/laravel-app-bootstrap
More information about gtcrais/laravel-app-bootstrap
Files in gtcrais/laravel-app-bootstrap
Package laravel-app-bootstrap
Short Description Application Bootstrap for Laravel 5.4+
License MIT
Informations about the package laravel-app-bootstrap
Laravel App Bootstrap for Laravel 5.4+
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
localdev
environment files (/config.localdev/...
) - replaces
env()
calls in/config/app.php
and/config/database.php
with strings (the latter being fully overwritten) - adds
/bootstrap/env.php
file and deletes.env
file, effectively disposing ofDotEnv
usage 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.json
and 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
MySQL
onlocalhost
, 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
.env
file obviously breaksphp artisan key:generate
command, Laravel App Bootstrap provides a substitution:lab:key-generate
License
Laravel App Bootstrap is open-sourced software licensed under the MIT license.