first()->id; $userId = DB::table('users')->first()->id; Currency::factory()->create([ 'company_id' => $companyId, 'created_by' => $userId, 'updated_by' => $userId, ]); } }