Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to check if query is successfully inserted laravel

try {
        DB::beginTransaction();

        // your code

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

        DB::rollback();

        // other actions

    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #query #successfully #inserted #laravel
ADD COMMENT
Topic
Name
8+2 =