Upgrade from 3.0 to 3.1ΒΆ
In order to upgrade from Laratrust 3.0 to 3.1 you have to follow these steps:
Change your
composer.json
to require the 3.1 version of laratrust:"santigarcor/laratrust": "3.1.*"
Run
composer update
to update the source code.Add in your
config/laratrust.php
file this line:'permission_user_table' => 'permission_user',
Run
php artisan laratrust:upgrade
to create the migration with the database upgrade.Run
php artisan migrate
to apply the migration created in the previous step.If you use the
savePermissions
method in your code, change it tosyncPermissions
.
Now you can use the 3.1 version without any problem.