Answers for "check if delete query was successful laravel"

PHP
1

check if delete query was successful laravel

try {
    DB::table('user_')->where('column',$something)->delete();
    $queryStatus = "Successful";
} catch(Exception $e) {
    $queryStatus = "Not success";
}
Posted by: Guest on August-16-2020

Code answers related to "check if delete query was successful laravel"

Browse Popular Code Answers by Language