if .env is missing copy example and generate key
This commit is contained in:
parent
c073929895
commit
f42ac0c5ba
|
@ -21,7 +21,7 @@ class AppServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!is_file(base_path('.env'))) {
|
if(!is_file(base_path('.env'))) {
|
||||||
touch(base_path('.env'));
|
copy(base_path('.env.example'), base_path('.env'));
|
||||||
Artisan::call('key:generate');
|
Artisan::call('key:generate');
|
||||||
}
|
}
|
||||||
if(!is_file(database_path('app.sqlite'))) {
|
if(!is_file(database_path('app.sqlite'))) {
|
||||||
|
|
Loading…
Reference in a new issue