wip
This commit is contained in:
@@ -92,6 +92,20 @@ class Branch extends Resource
|
|||||||
->rules('nullable', 'string', 'max:255')
|
->rules('nullable', 'string', 'max:255')
|
||||||
->hideFromIndex(),
|
->hideFromIndex(),
|
||||||
|
|
||||||
|
Text::make(__('Billing username (Swift)'), 'billing_swift_username')
|
||||||
|
->rules('nullable', 'string', 'max:255'),
|
||||||
|
|
||||||
|
Text::make(__('Billing password (Swift)'), 'billing_swift_password')
|
||||||
|
->rules('nullable', 'string', 'max:255')
|
||||||
|
->hideFromIndex(),
|
||||||
|
|
||||||
|
Text::make(__('Billing username (Visa/Master)'), 'billing_visa_master_username')
|
||||||
|
->rules('nullable', 'string', 'max:255'),
|
||||||
|
|
||||||
|
Text::make(__('Billing password (Visa/Master)'), 'billing_visa_master_password')
|
||||||
|
->rules('nullable', 'string', 'max:255')
|
||||||
|
->hideFromIndex(),
|
||||||
|
|
||||||
Textarea::make(__('Address'), 'address'),
|
Textarea::make(__('Address'), 'address'),
|
||||||
|
|
||||||
Boolean::make(__('Active'), 'active')
|
Boolean::make(__('Active'), 'active')
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('branches', function (Blueprint $table) {
|
||||||
|
$table->string('billing_swift_username')->nullable();
|
||||||
|
$table->string('billing_swift_password')->nullable();
|
||||||
|
|
||||||
|
$table->string('billing_visa_master_username')->nullable();
|
||||||
|
$table->string('billing_visa_master_password')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('branches', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('billing_swift_username');
|
||||||
|
$table->dropColumn('billing_swift_password');
|
||||||
|
|
||||||
|
$table->dropColumn('billing_visa_master_username');
|
||||||
|
$table->dropColumn('billing_visa_master_password');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user