This commit is contained in:
iVampireSP.com 2023-02-13 16:56:14 +08:00
parent e67e402679
commit ab2f41635a
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -77,8 +77,6 @@ protected static function boot()
}); });
} }
// on create
public function scopeThisUser($query) public function scopeThisUser($query)
{ {
return $query->where('user_id', auth()->id()); return $query->where('user_id', auth()->id());