Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds install command #45

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Adds install command #45

merged 2 commits into from
Feb 14, 2024

Conversation

joedixon
Copy link
Collaborator

@joedixon joedixon commented Feb 14, 2024

One of the outcomes of this PR is that it's possible to remove all service specific environment variables from the .env.example in the skeleton (laravel/laravel#6341) as they will be automatically added when installing Reverb.

Adds reverb:install command which carries out the following actions:

  1. Adds all REVERB_ and VITE_REVERB_ prefixed variables to the environment file (ignoring any which already exist)
  2. Publishes the Reverb configuration
  3. User if prompted whether they wish to enable broadcasting. If yes and running L11, the install:broadcasting command is called. If yes and running L10, App\Providers\BroadcastServiceProvider::class is uncommented from app.php
  4. User is prompted whether they wish to enable the Reverb broadcast driver. If yes, BROADCAST_DRIVER or BROADCAST_CONNECTION is set to reverb
Screen.Recording.2024-02-14.at.14.31.51.mov

@joedixon joedixon requested a review from nunomaduro February 14, 2024 14:46
@joedixon joedixon marked this pull request as ready for review February 14, 2024 16:57
@taylorotwell taylorotwell merged commit d5c8e14 into main Feb 14, 2024
6 of 7 checks passed
@taylorotwell taylorotwell deleted the feat/install-command branch February 14, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants