From d7767a00f5d5be8d6bfd4126953e568e76b6c1d6 Mon Sep 17 00:00:00 2001 From: Sealtyel Castillo Date: Thu, 26 Apr 2018 21:45:19 -0700 Subject: [PATCH] Add Laravel 5.5 autodiscovery capability --- README.md | 2 +- composer.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0caa0ae..146f0e4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ An artisan command to check your code standards via pre-commit git hook composer require avirdz/laravel-git-sniffer ``` -#### Add the provider to app config +#### Add the provider to app config (You don't need to do this if using Laravel >= 5.5) ```sh Avirdz\LaravelGitSniffer\GitSnifferServiceProvider ``` diff --git a/composer.json b/composer.json index 963a90a..b1c87e1 100644 --- a/composer.json +++ b/composer.json @@ -18,5 +18,12 @@ "psr-4": { "Avirdz\\LaravelGitSniffer\\": "src" } + }, + "extra": { + "laravel": { + "providers": [ + "Avirdz\\LaravelGitSniffer\\GitSnifferServiceProvider" + ] + } } }