fix .env.example and migration
This commit is contained in:
parent
7f4503d228
commit
a2ab45d28c
2 changed files with 12 additions and 7 deletions
|
@ -23,12 +23,6 @@ PAYPAL_SECRET=
|
|||
PAYPAL_CLIENT_ID=
|
||||
PAYPAL_EMAIL=
|
||||
|
||||
#INVOICE RELATED - put every value in quotes ""
|
||||
COMPANY_PHONE=
|
||||
COMPANY_ADRESS=
|
||||
COMPANY_VAT_ID=
|
||||
INVOICE_PREFIX="INV"
|
||||
|
||||
#set-up for extra discord verification
|
||||
DISCORD_CLIENT_ID=
|
||||
DISCORD_CLIENT_SECRET=
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class InvoiceSettings extends Migration
|
||||
|
@ -20,9 +21,19 @@ class InvoiceSettings extends Migration
|
|||
$table->string('company_phone')->nullable();
|
||||
$table->string('company_vat')->nullable();
|
||||
$table->string('company_mail')->nullable();
|
||||
$table->string('company_web')->nullable();
|
||||
$table->string('company_web')->nullable()->default(env("APP_URL",""));
|
||||
$table->string('invoice_prefix')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
DB::table('invoice_settings')->insert(
|
||||
array(
|
||||
'company_name' => env("APP_NAME","MyCompany"),
|
||||
'company_web' => env("APP_URL",""),
|
||||
'invoice_prefix' => "INV"
|
||||
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
Loading…
Add table
Reference in a new issue