/laravel-timezones

Timezone bundle for Laravel.

Primary LanguagePHPMIT LicenseMIT

Laravel Timezones

Timezone bundle for Laravel.

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require kennethllamasares/laravel-timezones

And then include the service provider within app/config/app.php.

KennethLlamasares\Timezones\TimezonesServiceProvider::class

To get started, you'll need to publish the vendor assets and migrate the timezones table:

php artisan vendor:publish --provider="KennethLlamasares\Timezones\TimezonesServiceProvider" && php artisan migrate

Now you can seed the timezones into the database like this.

php artisan timezones:seed