*/ protected $fillable = [ 'user_id', 'notify_post_complete', 'notify_post_reply', 'notify_comment', 'notify_reply_comment', ]; /** * 속성 캐스팅 * * @return array */ protected function casts(): array { return [ 'notify_post_complete' => 'boolean', 'notify_post_reply' => 'boolean', 'notify_comment' => 'boolean', 'notify_reply_comment' => 'boolean', ]; } /** * 사용자 관계 * * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }