Download the PHP package tomeasterbrook/livewire-fakeable without Composer
On this page you can find all versions of the php package tomeasterbrook/livewire-fakeable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomeasterbrook/livewire-fakeable
More information about tomeasterbrook/livewire-fakeable
Files in tomeasterbrook/livewire-fakeable
Package livewire-fakeable
Short Description Fill your Livewire component state with realistic fake data during local development.
License MIT
Homepage https://github.com/TomEasterbrook/livewire-fakeable
Informations about the package livewire-fakeable
Livewire 4. Fill empty component state with Faker while you build — after
mount, only on your machine, never overwriting values you already set.
Livewire Fakeable is a focused Laravel package with a simple idea: declare fake data next to your Livewire properties, and let a component hook apply it when it is safe. No seeding scripts scattered across mount() methods, and no guessing whether you are looking at real or dummy data.
Installation
The service provider is discovered automatically. Publish the config if you want to change locale, hosts, or the on-page indicator:
Quick start
Annotate public properties with #[Fakeable] and a Faker formatter name. Empty properties are filled after mount — only in local dev, never overwriting values you already set.
Use #[Fakeable] without a formatter to infer one automatically from the property name, type, or enum.
See the full documentation for array shapes, state classes, Form objects, seeds, locale, and more.
Safety
Faking only runs when all of these are true — otherwise the package does nothing:
enabledistruein config- App environment is
local - Request host matches an
allowed_hostsglob (e.g.*.test) Faker\Generatoris available
Testing
Changelog
Please see CHANGELOG.
Contributing
Please see CONTRIBUTING.
Security
Please see our security policy.
Credits
- Tom Easterbrook
- All Contributors
License
Livewire Fakeable is open-sourced software licensed under the MIT license.
All versions of livewire-fakeable with dependencies
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
livewire/livewire Version ^4.0
spatie/laravel-package-tools Version ^1.16