PHP code example of rhyslees / jetstream-user-timezone

1. Go to this page and download the library: Download rhyslees/jetstream-user-timezone 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/ */

    

rhyslees / jetstream-user-timezone example snippets


@livewire('jetstream-user-timezone::update-timezone-form')

<x-jet-section-border />

...
@if (Laravel\Fortify\Features::canUpdateProfileInformation())
    @livewire('profile.update-profile-information-form')

    <x-jet-section-border />
@endif

@livewire('jetstream-user-timezone::update-timezone-form')

<x-jet-section-border />

@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::updatePasswords()))
    <div class="mt-10 sm:mt-0">
        @livewire('profile.update-password-form')
    </div>

    <x-jet-section-border />
@endif
...

use RhysLees\JetstreamUserTimezone\Traits\HasTimezone;

class User extends Authenticatable
{
    use HasTimezone;
    ...
}
bash
php artisan vendor:publish --tag="jetstream-user-timezone-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="jetstream-user-timezone-config"
bash
php artisan vendor:publish --tag="jetstream-user-timezone-views"