amatz5/timezones

Timezones for Laravel 5.1

1.0.3 2015-12-01 07:41 UTC

This package is not auto-updated.

Last update: 2024-12-25 18:42:18 UTC


README

A simple Laravel 5 service provider for including the Timezones for Laravel 5.

Installation

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.

Usage

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,
    ]