Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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();
 
PREVIOUS NEXT
Tagged: #soft #deleted #data #laravel
ADD COMMENT
Topic
Name
6+6 =