cara memeriksa apakah permintaan berhasil dimasukkan laravel

try {
        DB::beginTransaction();

        // your code

        DB::commit();
    }catch (Exception $e) {

        DB::rollback();

        // other actions

    }
Tame Turtle