Laravel soft delete user

Code Examples

Laravel soft delete user

add deleted_at column in database table

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

class User extends Model{
	use SoftDeletes;
    
}

click for more Laravel codes read about laravel soft deletes