Skip to content
Scratch Coding
  • WordPress
  • Laravel
  • PHP
  • Vue.js
  • JavaScript
  • Quick Links
    • Contact Us
    • Privacy Policy
    • About Us

check if delete query was successful laravel

October 6, 2022 by Sumaira Nasir

check if delete query was successful laravel

try {
    DB::table('user_')->where('column',$something)->delete();
    $queryStatus = "Successful";
} catch(Exception $e) {
    $queryStatus = "Not success";
}
Categories Laravel
check if date between two dates laravel eloquent
check if elquent retrun empty array laravel

Related Posts

How to save database details using Laravel Route as API in Ionic
How to connect two Laravel 8 applications sharing same database
How to clear cache in laravel 8 via routes, controllers and commands?
How to fix ‘Trying to get property ‘name’ of non-object navigation.blade.php’
Fix Laravel 8 Breeze CSS
How to fix Laravel 8 Breeze CSS not loading with Vite
handle nulls and whitespaces
How to handle nulls and whitespaces in a single line – JavaScript
How to handle nulls and whitespaces using String functions – JavaScript
How To Delete Duplicate Rows in MySQL
check running container
How to check running container in Laravel 8?
Laravel 8 Config files
What are Laravel 8 Config Files & How to fetch value?
How to add Bootstrap Auth Scaffolding Laravel 8 Code Examples
How to add Bootstrap Auth Scaffolding Laravel 8 Code Examples
How to fix Laravel logging out automatically for no reason
How to fix Laravel logging you out automatically for no reason

Leave a Comment Cancel reply

Recent Posts

  • How to save database details using Laravel Route as API in Ionic
  • How to connect two Laravel 8 applications sharing same database
  • How to clear cache in laravel 8 via routes, controllers and commands?
  • How to fix ‘Trying to get property ‘name’ of non-object navigation.blade.php’
  • How to fix Laravel 8 Breeze CSS not loading with Vite
  • Ionic Framework
  • JavaScript
  • Laravel
  • MySql
  • PHP
  • Vue.js
  • Wordpress
© 2023 Scratch Coding • All Rights Reserved.