- Added `ConnectedAppData` DTO for structured data representation. - Implemented Livewire components for ConnectedApp list (`index`) and edit (`edit`). - Integrated `ConnectedAppService` with CRUD operations. - Updated routing to include ConnectedApp management paths. - Enhanced UI with reusable components and dynamic dropdowns for protocols, providers, and statuses.
23 lines
456 B
PHP
23 lines
456 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Models\ConnectionProvider;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class ConnectionProviderService
|
|
{
|
|
/**
|
|
* @return Collection<int, ConnectionProvider>
|
|
*/
|
|
public function search(string $value): Collection
|
|
{
|
|
return ConnectionProvider::query()
|
|
->whereLike('slug', "%{$value}%")
|
|
->orWhereLike('name', "%{$value}%")
|
|
->get();
|
|
}
|
|
}
|