luchavez-technologies / aws-ses-bounce

MIT License
2 stars 1 forks source link

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

Open faizananwerali opened 1 year ago

faizananwerali commented 1 year ago

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.

luchtech commented 1 year ago

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 commented 1 year ago

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