Skip to content

Instantly share code, notes, and snippets.

View jacksleight's full-sized avatar

Jack Sleight jacksleight

View GitHub Profile
Statamic.booting(() => {
Alpine.magic('useField', (el) => {
return () => {
const vm = closestVm(el);
if (!vm) {
return;
}
const data = Alpine.reactive({
value: vm.value,
@jacksleight
jacksleight / crud.blade.php
Last active December 2, 2024 11:55
Volt + Flux single file CRUD
<?php
use App\Models\Tag;
use Livewire\Attributes\Locked;
use Livewire\Attributes\Url;
use Livewire\Attributes\Validate;
use Livewire\Volt\Component;
use Livewire\WithPagination;
new class extends Component

See below: