all country

This commit is contained in:
merdan 2022-09-26 16:26:51 +05:00
parent 8196389188
commit 212df0d283
3 changed files with 11 additions and 2 deletions

View File

@ -120,6 +120,12 @@ protected function setupCreateOperation()
'label' => 'Max size (KBytes)',
'default' => 0
],
[
'name' => 'order',
'type' => 'number',
'label' => 'Order',
'default' => 0
],
[ // Checkbox
'name' => 'business',
'label' => 'Enterpreneurs',

View File

@ -29,7 +29,8 @@ class Document extends Model
'max_size',
'business',
'company',
'all_country'
'all_country',
'order'
];
// protected $hidden = [];
// protected $dates = [];

View File

@ -17,6 +17,7 @@ public function up()
$table->boolean('business')->default(0);
$table->boolean('company')->default(0);
$table->boolean('all_country')->default(0);
$table->integer('order')->default(0);
});
}
@ -30,7 +31,8 @@ public function down()
Schema::table('documents', function (Blueprint $table) {
$table->dropColumn('business');
$table->dropColumn('company');
// $table->dropColumn('all_country');
$table->dropColumn('all_country');
// $table->dropColumn('order');
});
}
};