# Upgrade from 6.x to 7.x
IMPORTANT
Laratrust 7.x requires Laravel 9.x
In order to upgrade from Laratrust 6.x to 7.x you have to follow these steps:
- Change your
composer.jsonto require the 7.x version of Laratrust:
"santigarcor/laratrust": "^7.0"
Run
composer updateto update the source code.Run
php artisan config:clearandphp artisan cache:clear.Update your
config/laratrust.php:4.1. Backup your
config/laratrust.phpconfiguration values.4.2. Delete the
config/laratrust.phpfile.4.3. Run
php artisan vendor:publish --tag=laratrust.4.4. Update the
config/laratrust.phpfile with your old values.
Now you can use the 7.x version without any problem.