瀏覽代碼

用户软删除

LD 5 年之前
父節點
當前提交
b82ecd0b98
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/User.php

+ 2 - 0
app/User.php

@@ -3,6 +3,7 @@
 namespace App;
 
 use App\Traits\ModelLogChanging;
+use Illuminate\Database\Eloquent\SoftDeletes;
 use Illuminate\Notifications\Notifiable;
 use Illuminate\Foundation\Auth\User as Authenticatable;
 use Illuminate\Support\Collection;
@@ -15,6 +16,7 @@ class User extends Authenticatable
     use ModelLogChanging;
     use ModelTimeFormat;
     use Notifiable;
+    use SoftDeletes;
 
     /**
      * The attributes that are mass assignable.