R

Ravina • 3.96K Points
Extraordinary

Q. Which Laravel method is used to create a soft delete column?

  • (A) $table->softDeletes();
  • (B) $table->deleteable();
  • (C) $table->removeOnDelete();
  • (D) $table->trash();
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Laravel
  • Hashtags:

Explanation by: Ravina

$table->softDeletes() adds a 'deleted_at' column for soft deleting records.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.