hasOne(User::class, 'id', 'user_id'); } public function crmUserLogs() { return $this->hasMany(CrmUserLog::class, 'user_id', 'user_id'); } }