10 months ago

I want to add another packages in my custom package

Posted 10 months ago by binggle

I am building my own package.

I moved User.php to my package folder


** AND I want to install 'spatie/laravel-permission' package inside my OWN package. I am not sure if I am ging right. **

So I added some requires in my package.json ( packages/myhouse/myfamily/src/composer.json)

    "name": "myhouse/myfamily",
    "authors": [
            "name": "myhouse",
            "email": ""
    "require": {
      "php": "^7.2",
      "spatie/laravel-permission": "^3.2.*"
    "minimum-stability": "dev",
    "prefer-stable": true

and I did

php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"

it goest error .

In ProviderRepository.php line 208:

  Class 'Spatie\Permission\PermissionServiceProvider' not found

How can I add another package in my package successfully ?

Please sign in or create an account to participate in this conversation.