| Package Data | |
|---|---|
| Maintainer Username: | amatz5 |
| Maintainer Contact: | amatz5s0ya@gmail.com (Amatz) |
| Package Create Date: | 2015-12-01 |
| Package Last Update: | 2015-12-01 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-02 03:03:36 |
| Package Statistics | |
|---|---|
| Total Downloads: | 20 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
A simple Laravel 5 service provider for including the Timezones for Laravel 5.
The Timezones Service Provider can be installed via Composer by requiring the
amatz5/timezones package (required for Laravel 5) in your project's composer.json.
{
"require": {
"laravel/framework": "5.0.*",
"amatz5/timezones": "dev-master"
},
}
or
Require this package with composer:
composer require amatz5/timezones
Update your packages with composer update or install with composer install.
To use the Timezones Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.
Find the providers key in config/app.php and register the Captcha Service Provider.
'providers' => [
// ...
'Amatz5\Timezones\TimezonesServiceProvider',
]
for Laravel 5.1+
'providers' => [
// ...
Amatz5\Timezones\TimezonesServiceProvider::class,
]
Find the aliases key in config/app.php.
'aliases' => [
// ...
'Timezones' => 'Amatz5\Timezones\Facades\Timezones',
]
for Laravel 5.1+
'aliases' => [
// ...
'Timezones' => Amatz5\Timezones\Facades\Timezones::class,
]