- Added `mary.php` configuration file for customizable component and route prefixes. - Upgraded `livewire/livewire` to v4.3 and added `robsontenorio/mary` v2.8 for maryUI support. - Updated `ConnectedApps` component to fetch data dynamically via `ConnectedAppService`. - Replaced static services with computed properties and streamlined data mappings in templates. - Enhanced frontend styling with `daisyUI` and TailwindCSS v4.3 integration. - Improved user feedback in `ConnectedAppForm` with success/error toasts.
23 lines
478 B
PHP
23 lines
478 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Data\ConnectedApp\ConnectionStatusData;
|
|
use App\Models\ConnectionStatus;
|
|
use Spatie\LaravelData\DataCollection;
|
|
|
|
class ConnectionStatusService
|
|
{
|
|
/**
|
|
* @return DataCollection<int, ConnectionStatusData>
|
|
*/
|
|
public function getAll(): DataCollection
|
|
{
|
|
$statuses = ConnectionStatus::query()->get();
|
|
|
|
return ConnectionStatusData::collect($statuses, DataCollection::class);
|
|
}
|
|
}
|