PHPackages                             akhaled/livewire-account-preferences - 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. akhaled/livewire-account-preferences

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

akhaled/livewire-account-preferences
====================================

Edit account model using livewire

v0.0.7(4y ago)116MITPHP

Since Nov 13Pushed 4y ago2 watchersCompare

[ Source](https://github.com/akhled/livewire-account-preferences)[ Packagist](https://packagist.org/packages/akhaled/livewire-account-preferences)[ RSS](/packages/akhaled-livewire-account-preferences/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (7)Versions (8)Used By (0)

Welcome
========

[](#welcome-)

Display and update user preferences with livewire

> The packages uses **bootstrap 4** by default. In next release I will enable publishing views to your project directory so you can update them.

- [Installation](#installation)
- [How to use](#how-to-use)
- [Define model fields](#define-model-fields)
- [Available configuration](#available-configuration)
- [Todo](#todo)

[Installation](https://packagist.org/packages/akhaled/livewire-account-preferences)
-----------------------------------------------------------------------------------

[](#installation)

`composer require akhaled/livewire-account-preferences`

How to use
----------

[](#how-to-use)

Very simple!

### 1. Add `ServiceProvider` in `config/app.php`

[](#1-add-serviceprovider-in-configappphp-)

```
    ...
    Akhaled\LivewireAccountPreferences\ServiceProvider::class
    ...
```

### 2. Add livewire component markup in your code

[](#2-add-livewire-component-markup-in-your-code-)

edit.blade.php

```
...
@livewire('account-preferences-edit', [
    'account' => auth()->user()
    'view' => 'account.edit' // optional, overrides global config property
])
...
```

show.blade.php

```
...
@livewire('account-preferences-show', [
    'account' => auth()->user()
    'view' => 'account.show' // optional, overrides global config property
])
...
```

### 3. Include [livewire-sweetalert](https://github.com/akhled/livewire-sweetalert) scripts along with @livewireScripts

[](#3-include-livewire-sweetalert-scripts-along-with-livewirescripts-)

If you want to enable sweetalert2 toast.

```
...
    @livewireScripts
    @livewireSweetalertScripts
...
```

### 4. Extra config file

[](#4-extra-config-file-)

Publish the configs: `php artisan vendor:publish --tag=livewire-account-preferences`.

> See [available configuration](#available-configuration)

---

Define model fields
-------------------

[](#define-model-fields)

By default, package assume model has `name`, `email` and `password` fields. If `Model` class has defined `$rules` property it overrides default. Please don't make the `password` column required as changing password is done in separate stage. Also, you need to define another property to tell component about filed usage.

Example :

```
class User
{
    ...
    public $rules = [
        'first_name' => 'required|string|min:6',
        'last_name' => 'required|string|min:6',
        'email_address' => 'required|email|max:500',
        ...
    ];

    public $lwap = [
        'first_name' => 'name',
        'last_name' => 'name',
        'email_address' => 'email'
    ]
    ...
}
```

Available configuration
-----------------------

[](#available-configuration)

- `views`:
    - `edit`: Global edit view resource location. If you submit a view with component it overrides the global config.
    - `show`: Global show view resource location. If you submit a view with component it overrides the global config.
- `routes`:
    - `edit`: Edit route name. Default is `/account`
    - `show`: Show route name. Default is `/account/edit`

Todo
----

[](#todo)

- Publish blade views
- Tailwind views

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~56 days

Recently: every ~84 days

Total

7

Last Release

1668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b287abe0508bd1591fc87a4d0b770a9545fe6033e9be97f1fcab4d5ec78753c6?d=identicon)[akhaled](/maintainers/akhaled)

---

Top Contributors

[![akhled](https://avatars.githubusercontent.com/u/74369977?v=4)](https://github.com/akhled "akhled (1 commits)")[![amrography](https://avatars.githubusercontent.com/u/9614340?v=4)](https://github.com/amrography "amrography (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/akhaled-livewire-account-preferences/health.svg)

```
[![Health](https://phpackages.com/badges/akhaled-livewire-account-preferences/health.svg)](https://phpackages.com/packages/akhaled-livewire-account-preferences)
```

###  Alternatives

[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[jantinnerezo/livewire-alert

This package provides a simple alert utilities for your livewire components.

8041.2M20](/packages/jantinnerezo-livewire-alert)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[revolution/self-ordering

Self Ordering System

2112.7k](/packages/revolution-self-ordering)[joelwmale/livewire-quill

Easily add QuillJS with image support to any Laravel Livewire component.

1314.0k](/packages/joelwmale-livewire-quill)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
