. Hello, world!

-->add this line in your model
use illuminate\Database\Eloquent\SoftDeletes;
and add trait

use softdeletes()

-->now add this in your migration
$table->softDeletes();
then run migration
php artisan migrate


now we have some method to fetch and recover deleted data

$customers=customer::onlyTrashed()->get(); ->to get all deleted or trashed data 
                                             here we can also use withtrashed() function

-->Now Restore

$customer=Customer::withTrashed()->find($id);
$customer->restore();

Permanent Delete

$customer=Customer::withTrashed()->find($id);
$customer->forceDelete();