Laravel 5 Eloquent provide soft deleted feature is awesome that way laravel excluded all soft delete record. So By default Laravel Eloquent excludes all the soft deleted records from query results.
But you can get also soft deleted record using withTrashed() of Laravel Eloquent. It will return all record from table.
You can get only soft deleted row using onlyTrashed() of Laravel Eloquent.
Normally, we remove row from database when delete record from site. But laravel 5 introduce SoftDeletes in models that way we can't remove from database but if remove record from front side then it doesn't show record on front. So we can retrieve record from database if we remove wrong row.
How work soft delete, laravel add <strong class="path">deleted_at</strong> 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 <strong class="path">deleted_at</strong> = null.
So, how to use in our proje.....