PHP code example of cyberpunkcodes / laravel-moment-timezone

1. Go to this page and download the library: Download cyberpunkcodes/laravel-moment-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/ */

    

cyberpunkcodes / laravel-moment-timezone example snippets


@momentScripts

<x-moment :date="$user->created_at" format="F jS, Y \a\t g:i a" />

<x-moment :date="$user->created_at" format="F jS, Y \a\t g:i a" human />

<x-moment :date="$user->created_at" format="MMMM Do, Y [at] h:mm a" local />

<x-cool-moment :date="$user->created_at" format="F jS, Y \a\t g:i a" />
bash
php artisan vendor:publish --tag=moment-config
bash
php artisan vendor:publish --tag=moment-views
bash
php artisan view:clear