Uuid::uuid4()->toString(), 'logType' => $args['logType'], 'causedBy' => $args['causedBy'], 'performedOn' => Carbon::now(), 'withContent' => json_encode($args['withContent'], true), ]); } public function user() { return $this->hasMany(User::class, 'id', 'causedBy'); } }