Eloquent's delete method from the parent Model class makes it simple to delete database records. The link:delete command, which is already included in the sample application's base version, deletes links based on a valid link id.
1. Use $table->softDeletes() to add a deleted at column to the migration.
2. To enable soft deletes for a model, add the IlluminateDatabaseEloquentSoftDeletes trait to the model and reference it with the use keyword SoftDeletes.
When data is mistakenly erased, soft erasing it allows us to readily view and restore it with no effort, and it may be a significant time saver. The IlluminateDatabaseEloquentSoftDeletes trait in Laravel supports soft deleting.
CRUD Definition: CRUD is an abbreviation from the realm of computer programming that refers to the four functions required to develop a persistent storage application: create, read, update, and delete.
Learner's Ratings
4.5
Overall Rating
83%
3%
7%
3%
4%
Reviews
A
Abdul Sattar
5
Please update course
A
Ali Haidar
5
awesome
M
Muzammal
5
Best Experience Ever
J
Jatin
5
this tutorial help me to learn laravel ..
Outstanding Course
G
gautam metaliya
5
good experiance
B
bokhtiar toshar
5
Thank you so much,
A
Anuj Tyagi
5
Thank you so much. You are doing a good job and your way of teaching is very good.
M
mohit mistry
5
Sir, very good explanation in video but sir which screen recoder you used for making this kind of video???
R
RUPESH MISHRA
5
sir please make a video how to use bootstap in laravel without cdn link..
Share a personalized message with your friends.