Welcome to Granule Laravel Shifter, a Laravel package that provides a quick way to upgrade your Laravel application to the newer version that using Granule Starter Kit. This package is intended to be used in Laravel applications that are using the Granule Starter Kit package.
| Name | Minimum Version |
|---|---|
| Laravel | > 10.x.x |
| PHP | > 8.2.x |
| Composer | > 2.7.x |
| Granule Starter Kit | > 2.0.x |
For stable package install using this command to get the latest version. (RECOMMENDED)
composer require granule/laravel-shifter --devTo run the upgrade process, you need to run this command.
php artisan pkt:upgradeBefore you install granule laravel shifter, you need to setup the composer first. You need to make Github Personal Access Token first. If your token not registered on your composer, you need to register first using this command.
- To check existing composer config on your device.
composer config -l- Register Starter Kit Repository to Project
# to register it locally on your project
composer config repositories.granule-laravel-shifter vcs https://github.com/pupukkaltim/granule-laravel-shifter.git
# or to register it globally in your device
composer config --global repositories.granule-laravel-shifter vcs https://github.com/pupukkaltim/granule-laravel-shifter.git- Install Granule Laravel Shifter
composer require granule/laravel-shifter --dev- Make sure your application installed with Granule Starter Kit.
- Make sure you have committed all your changes before running the command.
- (RECOMMENDED) Make a new branch for the upgrade process to avoid any conflict.
- Run the command below to upgrade your application.
php artisan pkt:upgrade- Check laravel installed version using this command.
php artisan --version- After the upgrade process is done, you need to check your application for any error or conflict.
