fix(expense): menambahkan type ke expense saat create
This commit is contained in:
parent
e35fe291b8
commit
cdab6e4e26
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Livewire\Forms\Studio\Finance;
|
||||
|
||||
use App\Enums\ExpenseType;
|
||||
use App\Models\Expense;
|
||||
use App\Rules\UnsignedInteger;
|
||||
use App\Traits\WithMediaHandler;
|
||||
@ -54,6 +55,7 @@ public function store()
|
||||
|
||||
DB::transaction(function () {
|
||||
$expense = Expense::create([
|
||||
'type' => ExpenseType::OPERATIONAL,
|
||||
'description' => $this->description,
|
||||
'amount' => $this->amount,
|
||||
]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user