Laravel con basura
$flights = App\Flight::withTrashed()
->where('account_id', 1)
->get();
Alberto Peripolli
$flights = App\Flight::withTrashed()
->where('account_id', 1)
->get();
$affected = DB::table('users')
->where('id', 1)
->update(['votes' => 1]);
Soft Delete : $user->delete();
Force Delete : $user->forceDelete();
Restore Soft Deleted Item : $user->restore();
$user->roles()->withTrashed()->get();