In newer laravel, we are use many ways to instead of https://github.com/Zizaco/entrust package doing works, but previous project still use it. for now, the project needs to upgrade to newer laravel, the package doesn’t support newer laravel, we can upgrade to suit our project by composer.

Documentation

Changes to * signature in composer.json

    "require": {
        "zizaco/entrust": "*"
    }

cloning package

For this project I put into /packages/ in application,

app/
packages/
    entrust/

repositories

    "repositories": [
        {
            "type": "path",
            "url": "packages/entrust"
        }
    ],

Finally you do composer update, you can customize or update the package by yourself, running the testing cases and more.