Skip to content

PHP code snippet – How to check if query is successfully inserted laravel?

try {
        DB::beginTransaction();

        // your code

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

        DB::rollback();

        // other actions

    }
See also  Python code snippet - How to change color of image in opencv?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.