v1.0.0 initial release
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\View\ComponentAttributeBag;
|
||||
|
||||
if (! function_exists('sk_is_livewire')) {
|
||||
function sk_is_livewire(?ComponentAttributeBag $attributes): bool
|
||||
{
|
||||
return collect($attributes?->getAttributes() ?? [])
|
||||
->keys()
|
||||
->contains(fn ($attr) => str($attr)->startsWith('wire:model'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user