I'm developing a Role-Permission package in Laravel and i want to use this package;
https://github.com/spatie/laravel-permission
Problem is I can not use some functions in the main project when I install this package in my own package. eg "HasRoles"
My packages composer.json file
 "require": {
        "spatie/laravel-permission": "dev-master"
    },
    "autoload": {
        "psr-4": {
            "Modul\\Permission\\": "src"
        }
    },
    "extra": {
        "laravel": {
            "providers": [
                "Spatie\\Permission\\PermissionServiceProvider"
            ]
        }
    }
when i serve its show this error message
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN) Trait 'Spatie\Permission\Traits\HasRoles' not found
What am I doing wrong here?
via Chebli Mohamed
 
Aucun commentaire:
Enregistrer un commentaire