- Renamed `ConnectedServicesService` to `ConnectedAppService` and adjusted related factories, DTOs, and forms. - Introduced `ConnectionProtocolService` and `ConnectionProviderService` for managing protocols and providers. - Updated Livewire forms to improve validation and allow real-time provider searches. - Added a `ConnectionStatus` field and related dropdown to service connection forms. - Enhanced form handling with new services, search functionality, and validation rules. - Refactored factory and DTO structure for better consistency and modularity. - Added service layer documentation and streamlined component data mappings.
31 lines
563 B
PHP
31 lines
563 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Models\ConnectionProtocol;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Support\Collection;
|
|
|
|
readonly class ConnectionProtocolService
|
|
{
|
|
/**
|
|
* @var Builder<ConnectionProtocol>
|
|
*/
|
|
private Builder $builder;
|
|
|
|
public function __construct(
|
|
) {
|
|
$this->builder = ConnectionProtocol::query();
|
|
}
|
|
|
|
/**
|
|
* @return Collection<int, ConnectionProtocol>
|
|
*/
|
|
public function getAll(): Collection
|
|
{
|
|
return $this->builder->get();
|
|
}
|
|
}
|