Merge branch 'staging' of https://git.putrakuningan.com/daengdeni/lpj into tender

This commit is contained in:
2025-04-22 17:19:52 +07:00
4 changed files with 70 additions and 2 deletions

View File

@@ -22,11 +22,13 @@ use Modules\Lpj\Models\NilaiPlafond;
use Modules\Lpj\Models\Permohonan;
use Modules\Lpj\Models\StatusPermohonan;
use Modules\Lpj\Models\TujuanPenilaian;
use Modules\Lpj\Notifications\PermohonanNotif;
use Modules\Lpj\Services\PermohonanHistoryService;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Facades\DB;
use Modules\Lpj\Models\Penilaian;
use Modules\Usermanagement\Models\User;
class PermohonanController extends Controller
{
@@ -63,6 +65,10 @@ class PermohonanController extends Controller
// Save to database
$permohonan = Permohonan::create($validate);
$user_ = User::find($permohonan->created_by);
$user_->notify(new PermohonanNotif($permohonan));
// Create history
$this->historyService->createHistory(
$permohonan,