get data with trashed laravel code example
Example 1: get soft deleted data laravel
To also get soft deleted models :
$trashedAndNotTrashed = Model::withTrashed()->get();
Only soft deleted models in your results :
$onlySoftDeleted = Model::onlyTrashed()->get();
Example 2: laravel with trashed
$flights = App\Flight::withTrashed()
->where('account_id', 1)
->get();