$__DIR__ undefined variable in boot()
Closed this issue · 2 comments
domainregistrar commented
`
ErrorException : Undefined variable: DIR
at /Users/user/Desktop/Projects/project/vendor/fomvasss/laravel-punycode/src/PunycodeServiceProvider.php:17
13| */
14| public function boot()
15| {
16| $this->publishes([
17| $DIR . '/../config/punycode.php' => config_path('punycode.php')
18| ], 'config');
19|
20| $this->registerHelpers();
21| }
`
Should replace $DIR with DIR and this works.
This breaks publishing config/composer update.
fomvasss commented
Thanks. I fixed the error!
domainregistrar commented
@fomvasss Awesome quick response! 👍