check if delete query was successful laravel

92

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

Comments

Submit
0 Comments