This commit is contained in:
Azfar Arsyad
2021-12-13 16:46:31 +08:00
parent c6912ef379
commit 7fb6ef3f63
15 changed files with 665 additions and 23 deletions
@@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCawangansTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cawangan', function (Blueprint $table) {
$table->id();
$table->string('caw_dbname')->nullable();
$table->string('caw_dbuser')->nullable();
$table->string('caw_dbpass')->nullable();
$table->string('caw_ip')->nullable();
$table->string('caw_name')->nullable();
$table->string('caw_code')->nullable();
$table->string('nama_bank')->nullable();
$table->string('bank_acc')->nullable();
$table->string('bank_acc_no')->nullable();
$table->string('alamat1')->nullable();
$table->string('alamat2')->nullable();
$table->string('notel')->nullable();
$table->string('nofaks')->nullable();
$table->string('lokasi')->nullable();
$table->string('pkb_jmc')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('cawangan');
}
}
+5
View File
@@ -33,6 +33,10 @@ class RolesSeeder extends Seeder
'name' => 'analisa',
'description' => 'Analisa lelong'
]);
Permission::create([
'name' => 'sistem',
'description' => 'Pengurusan connection database dan environment system'
]);
//khazanah
Permission::create([
@@ -113,6 +117,7 @@ class RolesSeeder extends Seeder
$role1->givePermissionTo('pengguna');
$role1->givePermissionTo('pengurusanlelongan');
$role1->givePermissionTo('analisa');
$role1->givePermissionTo('sistem');
$role2 = Role::create(['name' => 'khazanah']);
$role2->givePermissionTo('semakanmarhun');