Download the PHP package akhaled/livewire-account-preferences without Composer
On this page you can find all versions of the php package akhaled/livewire-account-preferences. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akhaled/livewire-account-preferences
More information about akhaled/livewire-account-preferences
Files in akhaled/livewire-account-preferences
Package livewire-account-preferences
Short Description Edit account model using livewire
License MIT
Informations about the package livewire-account-preferences
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
- How to use
- Define model fields
- Available configuration
- Todo
Installation
composer require akhaled/livewire-account-preferences
How to use
Very simple!
1. Add ServiceProvider
in config/app.php
2. Add livewire component markup in your code
edit.blade.php
show.blade.php
3. Include livewire-sweetalert scripts along with @livewireScripts
If you want to enable sweetalert2 toast.
4. Extra config file
Publish the configs: php artisan vendor:publish --tag=livewire-account-preferences
.
See available configuration
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 :
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
- [ ] Publish blade views
- [ ] Tailwind views
All versions of livewire-account-preferences with dependencies
livewire/livewire Version ^2.0
akhaled/livewire-sweetalert Version ^0.1.0