with trashed laravel code example
Example 1: laravel with trashed
$flights = App\Flight::withTrashed()
->where('account_id', 1)
->get();
Example 2: laravel update from query
$affected = DB::table('users')
->where('id', 1)
->update(['votes' => 1]);
Example 3: eloquent update row response
DB::table('users')
->where('id', 1)
->update(['votes' => 1]);
Example 4: laravel query with trashed
$user->roles()->withTrashed()->get();