Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to override and publish config and migraation files? #1

Open
faizananwerali opened this issue Aug 10, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@faizananwerali
Copy link

faizananwerali commented Aug 10, 2023

I tried this but it didn't work.

php artisan vendor:publish --provider="Luchavez\AwsSesBounce\Providers\AwsSesBounceServiceProvider"

   INFO  Publishing assets.  

   ERROR  Can't locate path: <vendor/luchavez/aws-ses-bounce/src/Providers/../config/aws-ses-bounce.php>.  

php artisan vendor:publish --tag="aws-ses-bounce-config"                                           

   INFO  No publishable resources for tag [aws-ses-bounce-config].  

php artisan vendor:publish --tag="aws-ses-bounce-migration"

   INFO  No publishable resources for tag [aws-ses-bounce-migration]. 

Unfortunately, you haven't set up the 'configurePackage' method in Service Provider. Here is an example from 'spatie/laravel-backup'.

https://github.com/spatie/laravel-backup/blob/main/src/BackupServiceProvider.php

You can use this package https://github.com/spatie/package-skeleton-laravel so users can generate these files from the command line.

@faizananwerali faizananwerali changed the title Ability to override and publish config file? Ability to override and publish config and migraation files? Aug 10, 2023
@luchtech
Copy link
Collaborator

Sorry for the very late reply. I am currently ongoing with two packages so I haven't read your issue. In the meantime, you can copy the config file manually from vendor/luchavez/aws-ses-bounce/config/aws-ses-bounce.php to config/aws-ses-bounce.php. Will push as soon as I can. Thank for taking your time.

@luchtech luchtech self-assigned this Aug 23, 2023
@luchtech luchtech added the bug Something isn't working label Aug 23, 2023
@luchtech
Copy link
Collaborator

luchtech commented Aug 24, 2023

Hello, @faizananwerali ! If you can read this, please chat me on Discord: https://discord.com/invite/bFpDTgp3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants