|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
+use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
class InvoiceSettings extends Migration
|
|
class InvoiceSettings extends Migration
|
|
@@ -20,9 +21,19 @@ class InvoiceSettings extends Migration
|
|
$table->string('company_phone')->nullable();
|
|
$table->string('company_phone')->nullable();
|
|
$table->string('company_vat')->nullable();
|
|
$table->string('company_vat')->nullable();
|
|
$table->string('company_mail')->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();
|
|
$table->timestamps();
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ DB::table('invoice_settings')->insert(
|
|
|
|
+ array(
|
|
|
|
+ 'company_name' => env("APP_NAME","MyCompany"),
|
|
|
|
+ 'company_web' => env("APP_URL",""),
|
|
|
|
+ 'invoice_prefix' => "INV"
|
|
|
|
+
|
|
|
|
+ )
|
|
|
|
+ );
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|