Answers for "laravel throw if not inserted"

PHP
0

how to check if query is successfully inserted laravel

try {
        DB::beginTransaction();

        // your code

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

        DB::rollback();

        // other actions

    }
Posted by: Guest on August-21-2020

Browse Popular Code Answers by Language