check if delete query was successful laravel
snippet in php

check if delete query was successful laravel

user3908

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