qruto / laravel-wave

Painless Laravel Broadcasting with SSE
MIT License
747 stars 29 forks source link

[Bug]: Error when running php artisan install:broadcasting #63

Closed metasanjaya closed 6 months ago

metasanjaya commented 7 months ago

What happened?

Error Exception after Published 'channels' route file.

copy(/Users/project/mylaravelproject/vendor/qruto/laravel-wave/src/Console/Commands/../../../vendor/laravel/framework/src/Illuminate/Foundation/Console/stubs/broadcasting-routes.stub): Failed to open stream: No such file or directory

How to reproduce the bug

  1. install laravel
  2. Run composer require qruto/laravel-wave
  3. Run php artisan install:broadcasting

Package Version

0.9

PHP Version

8.2.14

Laravel Version

11.2.0

Which operating systems does with happen with?

macOS

Notes

I suggest in BroadcastingInstallCommand.php do not using relative paths to copy stubs. instead using basepath to the stub file.

Thank you.

slavarazum commented 6 months ago

Fixed in 0.9.1

Thank you for the report!