PHP code example of akhaled / livewire-account-preferences

1. Go to this page and download the library: Download akhaled/livewire-account-preferences library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

akhaled / livewire-account-preferences example snippets


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

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

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


class User
{
    ...
    public $rules = [
        'first_name' => 'ss' => '     'last_name' => 'name',
        'email_address' => 'email'
    ]
    ...
}