debug code for seecend time
This commit is contained in:
@@ -38,7 +38,7 @@ class GeneralManagerController extends Controller
|
||||
DB::transaction(function () use ($request, $harim) {
|
||||
$action = HarimAction::CONFIRM->value;
|
||||
$harim->histories()->create([
|
||||
'user_id' => auth()->user()->id,
|
||||
'expert_id' => auth()->user()->id,
|
||||
'previous_state_id' => $harim->state_id,
|
||||
'previous_state_name' => $harim->state_name,
|
||||
'expert_description' => $request->expert_description,
|
||||
@@ -60,7 +60,7 @@ class GeneralManagerController extends Controller
|
||||
DB::transaction(function () use ($request, $harim) {
|
||||
$action = HarimAction::REJECT->value;
|
||||
$harim->histories()->create([
|
||||
'user_id'=> auth()->user()->id,
|
||||
'expert_id'=> auth()->user()->id,
|
||||
'previous-state_id' => $harim->state_id,
|
||||
'previous_state_name' => $harim->state_name,
|
||||
'export_description' => $request->export_description,
|
||||
|
||||
@@ -38,7 +38,7 @@ class HarimOfficeController extends Controller
|
||||
DB::transaction(function () use ($request,$harim) {
|
||||
$action = HarimAction::YES->value;
|
||||
$harim->histories()->create([
|
||||
'user_id' => auth()->user()->id,
|
||||
'expert_id' => auth()->user()->id,
|
||||
'previous_state_id' => $harim->state_id,
|
||||
'previous_state_name' => $harim->state_name,
|
||||
'expert_description' => $request->expert_description,
|
||||
@@ -61,7 +61,7 @@ class HarimOfficeController extends Controller
|
||||
DB::transaction(function () use ($request,$harim) {
|
||||
$action = HarimAction::NO->value;
|
||||
$harim->histories()->create([
|
||||
'user_id' => auth()->user()->id,
|
||||
'expert_id' => auth()->user()->id,
|
||||
'previous_state_id' => $harim->state_id,
|
||||
'previous_state_name' => $harim->state_name,
|
||||
'expert_description' => $request->expert_description,
|
||||
|
||||
@@ -39,7 +39,7 @@ class ProvinceOfficeController extends Controller
|
||||
$action = HarimAction::FEEDBACK->value;
|
||||
|
||||
$harim->histories()->create([
|
||||
'user_id' => auth()->user()->id,
|
||||
'expert_id' => auth()->user()->id,
|
||||
'previous_state_id' => $harim->state_id,
|
||||
'previous_state_name' => $harim->state_name,
|
||||
'expert_description' => $request->expert_description,
|
||||
|
||||
@@ -39,7 +39,7 @@ class TechnicalDeputyController extends Controller
|
||||
$action = HarimAction::CONFIRM->value;
|
||||
|
||||
$harim->histories()->create([
|
||||
'user_id' => auth()->user()->id,
|
||||
'expert_id' => auth()->user()->id,
|
||||
'previous_state_id' => $harim->state_id,
|
||||
'previous_state_name' => $harim->state_name,
|
||||
'expert_description' => $request->expert_description,
|
||||
|
||||
@@ -15,14 +15,12 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->foreignId('previous_state_id')->constrained('harim_states');
|
||||
$table->string('previous_state_name');
|
||||
$table->foreignId('current_state_id')->constrained('harim_states');
|
||||
$table->string('current_state_name');
|
||||
$table->foreignId('harim_id')->constrained('harims');
|
||||
$table->foreignId('action_id')->constrained('harim_actions');
|
||||
$table->string('action_name');
|
||||
$table->unsignedInteger('expert_id');
|
||||
$table->foreign('expert_id')->references('id')->on('users');
|
||||
$table->string('expert_description');
|
||||
$table->json('previous_data');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user