client = $client; $sl = [ 'client_id' => $this->client->id, 'company_id' => $this->client->company->id, 'user_id' => $this->client->user_id, 'log' => $log, 'category_id' => $category_id, 'event_id' => $event_id, ]; SystemLog::create($sl); } }