Skip to content

Update documentation for Laravel 5.5+ and composer installation #2

@nathan-io

Description

@nathan-io

Thanks again for this useful package. Wanted to suggest a couple of updates to the readme.

Finally, after the update completes, add the service provider.

This step is no longer necessary since Laravel 5.5 introduced automatic package discovery.

First, edit your project's composer.json file to require jessedp/php-timezones ... Next, update Composer

It would be faster (and safe) to let Composer handle this via: composer require jessedp/php-timezones.

That method would also limit the operation merely to installing your package and its dependency - versus a full composer update, which could potentially introduce a breaking change from some unrelated vendor package.

It also better aligns with a lot of production deployment scripts which would typically include something like composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader rather than composer update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions