laravel-packager icon indicating copy to clipboard operation
laravel-packager copied to clipboard

Keywords not replaced

Open karmendra opened this issue 4 years ago • 2 comments

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.
image

Even the file names are not changed. Facade file is coming as packages/vend/pack/src/Facades/MyPackage.php

karmendra avatar Jan 23 '21 20:01 karmendra

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.

kodyxgen avatar Mar 10 '21 20:03 kodyxgen

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.

karmendra avatar Mar 11 '21 19:03 karmendra