'array', 'profit' => 'array', ]; public function rule() { return $this->hasOne(ActivityRule::class, 'code', 'code'); } }