23/11
2017
Wallogit.com
2017 © Pedro Peláez
Adds artisan command and routes to determine number of commits that current project is behind develop branch
composer require staskjs/laravel-commits-behind
If you are using laravel 5.5+, package will be automatically registered., (*1)
If not, then add Staskjs\CommitsBehind\CommitsBehindServiceProvider to config/app.php, (*2)
php artisan commits-behind command will be registered, as well as /debug/commits-behind route., (*3)
php artisan commits-behind --branch=develop --type=local, (*4)
Use type local when git folder is directly in the root folder, (*5)
Use type cap is you are deployed with capistrano, (*6)
Same parameters go for route, just pass them as get params., (*7)