Страницы · Laravilt
Support
Base classes, traits and helpers shared by every Laravilt package.
laravilt/support is the foundation the other packages build on. It provides the Component base class, reusable traits for labels, visibility, state and so on, the Get/Set helpers injected into closures, RTL detection, colors, and frontend stack detection. It is installed automatically as a dependency, so you usually use it only when building your own components or plugins.
In this section
- Component: the base class for UI components and how it serializes
- Concerns: the traits every component uses
- Utilities:
Get,Set,Translator,ColorandFrontend
Frontend stack
Laravilt supports Vue 3 (shadcn-vue / reka-ui) and React 19 (shadcn/ui). Laravilt\Support\Frontend reports which stack the app uses. It reads the laravilt-support.frontend config key (env LARAVILT_FRONTEND, written by laravilt:install --stack=vue|react), and otherwise detects the stack from package.json, falling back to Vue:
React support requires Laravilt v1.1 or later.
See Utilities and Frontend Stacks.