阶段更新
This commit is contained in:
@@ -9,7 +9,7 @@ use Modules\User\Traits\BelongsToUser;
|
||||
class IdentityMiddle extends Pivot
|
||||
{
|
||||
|
||||
use BelongsToUser, MorphManyTimeline;
|
||||
use BelongsToUser;
|
||||
|
||||
protected $table = 'user_identity';
|
||||
protected $primaryKey = 'user_id';
|
||||
@@ -21,11 +21,7 @@ class IdentityMiddle extends Pivot
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
self::created(function ($identity) {
|
||||
if ($identity->identity->order > 1) {
|
||||
$identity->addTimeline();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public function identity(): BelongsTo
|
||||
|
||||
Reference in New Issue
Block a user