laravel-packager
laravel-packager copied to clipboard
Keywords not replaced
Laravel 8.24 PHP 7.4.10 Homestead 9 (vagrant up via an admin cmd in windows 10)
After the package version 2.6 is installed and when I try to create a new package using new
command as following
php artisan packager:new vend pack
package is created in packages directory but the following keywords are not replaced.
':uc:vendor',
':uc:package',
':lc:vendor',
':lc:package',
Following screenshot show how generated Facade class looks like.
Even the file names are not changed. Facade file is coming as
packages/vend/pack/src/Facades/MyPackage.php
It's not the best workaround but try adding a sleep(5) Commands/newPackage.php line 105 before manifest = ... This helped me create the package with success.
After I update to the latest version i.e. 2.7 , and then attempted to create the package, this time it did replace the keywords, but it didn't rename the files.
I tried the trick that @kodyxgen share above, and this time it did properly rename the file names as well. @kodyxgen Thanks for this tip.