- Add TableHeader DTO - Refactor Toggle component to have checked prop, as wire:model does not work - add null collasing for php 8.5 strict compatibility in scope directive - refactor card component so that actions stay on the right - make button component scaled small on active and change color on hover
17 lines
266 B
PHP
17 lines
266 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Data\Ui;
|
|
|
|
use Spatie\LaravelData\Data;
|
|
|
|
final class TableHeader extends Data
|
|
{
|
|
public function __construct(
|
|
public string $key,
|
|
public string $label,
|
|
public ?array $format = null,
|
|
) {}
|
|
}
|