delete data laravel code example
Example 1: laravel delete where
DB::table('users')->where('id', $id)->delete();
Example 2: create new record via model in laravel
$userData = array('username' => 'Me', 'email' => '[email protected]');
User::create($userData);