'integer', 'receiver_id' => 'integer', 'read' => 'boolean', ]; /** @var string[] */ protected $fillable = [ 'user_id', 'receiver_id', 'read', 'text', ]; /** @var array */ protected $attributes = [ 'read' => false, ]; /** * @return BelongsTo */ public function receiver(): BelongsTo { return $this->belongsTo(User::class, 'receiver_id'); } }