mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
16 lines
340 B
PHP
16 lines
340 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use Filament\Notifications\Collection;
|
|
|
|
class AlertBannerCollection extends Collection
|
|
{
|
|
public static function fromLivewire($value): static
|
|
{
|
|
return (new static($value))->transform(
|
|
fn (array $alertBanner): AlertBanner => AlertBanner::fromArray($alertBanner),
|
|
);
|
|
}
|
|
}
|