Browse Source

if .env is missing copy example and generate key

pull/313/head
KodeStar 6 years ago
committed by GitHub
parent
commit
f42ac0c5ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/Providers/AppServiceProvider.php

2
app/Providers/AppServiceProvider.php

@ -21,7 +21,7 @@ class AppServiceProvider extends ServiceProvider
{
if(!is_file(base_path('.env'))) {
touch(base_path('.env'));
copy(base_path('.env.example'), base_path('.env'));
Artisan::call('key:generate');
}
if(!is_file(database_path('app.sqlite'))) {

Loading…
Cancel
Save