How to add softDelete in modeldata laravel Code Answer – 2024

In this article, we will learn about how to add softDelete in modeldata laravel

<? php
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserModel extends Model{
	use SoftDeletes;
    // your other code goes here
}

Discover more from STRUGGLER KING.COM

Subscribe now to keep reading and get access to the full archive.

Continue Reading