1 2 3 4 5 6 7 8
import { text } from './index.js'; /** * Alpine.plugin(laratext) gives every component $text('key', 'Source'). */ export default function laratext(Alpine) { Alpine.magic('text', () => text); }