PHPackages                             quintenmbusiness/laravelwired - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. quintenmbusiness/laravelwired

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

quintenmbusiness/laravelwired
=============================

Model-driven Livewire forms and tables

0.1.1(3mo ago)10[1 PRs](https://github.com/quintenmbusiness/LaravelWired/pulls)MITPHPPHP ^8.2

Since Jan 18Pushed 3mo agoCompare

[ Source](https://github.com/quintenmbusiness/LaravelWired)[ Packagist](https://packagist.org/packages/quintenmbusiness/laravelwired)[ RSS](/packages/quintenmbusiness-laravelwired/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

LaravelWired
============

[](#laravelwired)

LaravelWired is a small opinionated helper package that wires **Eloquent models**, **Livewire components**, and **routes** together with almost zero boilerplate.

It provides:

- Base Livewire components for model-driven forms and tables
- Traits you add to your Eloquent models
- Route macros that automatically register CRUD-style routes
- A predictable convention-over-configuration flow

This package is designed to be used **inside an application**, not necessarily as a standalone Composer-distributed package.

At this moment the package is still under development and it is not recommended to use in a production app at this time.
------------------------------------------------------------------------------------------------------------------------

[](#at-this-moment-the-package-is-still-under-development-and-it-is-not-recommended-to-use-in-a-production-app-at-this-time)

Installation
------------

[](#installation)

Since this is local to your app, register the service provider manually if needed:

```
use quintenmbusiness\LaravelWired\LaravelWiredServiceProvider;

return [
    LaravelWiredServiceProvider::class,
];
```

Optionally publish the config and views:

```
php artisan vendor:publish --tag=laravelwired-config
php artisan vendor:publish --tag=laravelwired-views
```

---

Core Concepts
-------------

[](#core-concepts)

LaravelWired revolves around **models declaring which Livewire components belong to them**, and **routes being generated from the model itself**.

There are two main features:

- Model Forms
- Model Tables

Each is enabled by a trait on the model and a single route call.

---

Model Forms
-----------

[](#model-forms)

### 1. Add the trait to your model

[](#1-add-the-trait-to-your-model)

```
