R

Ravina • 3.96K Points
Extraordinary

Q. What does the Laravel method 'withTrashed()' do in Eloquent?

  • (A) Retrieves only deleted records
  • (B) Ignores soft deleted records
  • (C) Retrieves all records including soft deleted
  • (D) Deletes all soft deleted records
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category Laravel
  • Hashtags:

Explanation by: Ravina

withTrashed() retrieves all records, including those that are soft deleted.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.