# Upgrade from 5.1 to 5.2
Laratrust 5.2 requires Laravel >= 5.6 and php >= 7.1.
In order to upgrade from Laratrust 5.1 to 5.2 you have to follow these steps:
- Change your
composer.jsonto require the 5.2 version of Laratrust:
composer updateto update the source code.
php artisan config:clearand
php artisan cache:clear.
config/laratrust.phpin the cache ttl from 60 to 3600 or the value you had but now put it in seconds.
Now you can use the 5.2 version without any problem.