Upgrade from 3.0 to 3.1ΒΆ

In order to upgrade from Laratrust 3.0 to 3.1 you have to follow these steps:

  1. Change your composer.json to require the 3.1 version of laratrust:

    "santigarcor/laratrust": "3.1.*"
    
  2. Run composer update to update the source code.

  3. Add in your config/laratrust.php file this line:

    'permission_user_table' => 'permission_user',
    
  4. Run php artisan laratrust:upgrade to create the migration with the database upgrade.

  5. Run php artisan migrate to apply the migration created in the previous step.

  6. If you use the savePermissions method in your code, change it to syncPermissions.

Now you can use the 3.1 version without any problem.