Cascade Delete & Restore when using SoftDeletes

  • I’ve always used MySQL foreign key constraints to cascade delete related records.
  • Laravels Soft Deleting allows you to retain deleted records in your database so they can be used or restored at a later point.
  • Your database is never told to actually ‘delete’ a record, instead the deleted_at field is updated.

Read the full article, click here.


@LearningLaravel: “Learn about Cascading SoftDeletes with Laravel 5

#laravel #php #angularjs #jquery #ajax #reactjs #vuejs #html #css”


One of the bestselling Laravel books! Learning Laravel 5 shows you a fastest way to learn developing web applications using Laravel 5 PHP framework


Cascade Delete & Restore when using SoftDeletes | Learning Laravel