kemaskini mutu marhun

This commit is contained in:
faiqahzaman
2022-03-09 10:16:23 +08:00
parent c1a5324340
commit 723be802e9
11 changed files with 552 additions and 106 deletions
@@ -0,0 +1,48 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePengesahanTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pengesahan', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->unsignedBigInteger('lelongbid_id')->unsigned();
$table->string('norujukan');
$table->integer('disahkan_oleh')->nullable();
$table->datetime('disahkan_pada')->nullable();
$table->integer('diminta_oleh');
$table->datetime('diminta_pada');
$table->integer('status')->default(0); //1 = terima
$table->timestamps();
$table->foreign('lelong_id')
->references('id')->on('lelong')
->onDelete('cascade');
$table->foreign('lelongbid_id')
->references('id')->on('lelongbid')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('pengesahan');
}
}
+5
View File
@@ -107,6 +107,10 @@ class RolesSeeder extends Seeder
'name' => 'pengesahanpembida',
'description' => 'Pengesahan Pembida Baru'
]);
Permission::create([
'name' => 'pengesahan',
'description' => 'Pengesahan Perubahan Mutu Marhun'
]);
//account
Permission::create([
@@ -158,6 +162,7 @@ class RolesSeeder extends Seeder
$role6->givePermissionTo('tangguhan');
$role6->givePermissionTo('analisa');
$role6->givePermissionTo('pengesahanpembida');
$role6->givePermissionTo('pengesahan');
$role7 = Role::create(['name' => 'account']);
$role7->givePermissionTo('pengesahanbayaran');