Soft Deletes In Laravel | How To Use Soft Deletes In Laravel | Laravel Advanced Concepts | HINDI
In this video we are going to look at Soft Deletes In Laravel , How To Use Soft Deletes In Laravel and Normally, this is part of Laravel Advanced Concepts. We remove rows from the database when deleting a record from the site. But laravel introduces SoftDeletes in models that way we can't remove it from the database but if remove the record from the front side then it doesn't show the record on the front. So we can retrieve records from the database if we remove the wrong row.
How to work soft delete, laravel add deleted_at column on the table that be default will be null and when we remove then it will place current timestamp, Laravel Model always fetch that record have only deleted_at = null.
So, how to use in our project, so first when you create table migration then you have to add softDeletes().
Our Playlist:
Computer Facts:https://www.youtube.com/playlist?list=PLT51dtioU1pMRgv8kNYajmgJfA1W1zwqv
Laravel User Management System :
https://www.youtube.com/playlist?list=PLT51dtioU1pPNxwwo3dWfkUCKI2BXnc_H
Laravel Auth System :
https://www.youtube.com/playlist?list=PLT51dtioU1pPmtFnYQ5WRnYvvL1zW74wl
Laravel And Vuejs
https://www.youtube.com/playlist?list=PLT51dtioU1pN0mQqQ5RM5nE8uOfzsqml2
Laravel Eloquent Relationships
https://www.youtube.com/playlist?list=PLT51dtioU1pO7YgLOyNY0KF_3ny79D0BV
#LaravelSoftDelets #SoftDeletes #LaravelAdvanced
Please subscribe to my channel and share the video with your friends.