You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: broadcasting.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,13 +93,13 @@ Before broadcasting any events, you should first configure and run a [queue work
93
93
94
94
When running the `install:broadcasting` command, you will be prompted to install [Laravel Reverb](/docs/{{version}}/reverb). Of course, you may also install Reverb manually using the Composer package manager.
95
95
96
-
```sh
96
+
```shell
97
97
composer require laravel/reverb
98
98
```
99
99
100
100
Once the package is installed, you may run Reverb's installation command to publish the configuration, add Reverb's required environment variables, and enable event broadcasting in your application:
Copy file name to clipboardExpand all lines: pennant.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -894,21 +894,21 @@ Feature::purge();
894
894
895
895
As it can be useful to purge features as part of your application's deployment pipeline, Pennant includes a `pennant:purge` Artisan command which will purge the provided features from storage:
896
896
897
-
```sh
897
+
```shell
898
898
php artisan pennant:purge new-api
899
899
900
900
php artisan pennant:purge new-api purchase-button
901
901
```
902
902
903
903
It is also possible to purge all features _except_ those in a given feature list. For example, imagine you wanted to purge all features but keep the values for the "new-api" and "purchase-button" features in storage. To accomplish this, you can pass those feature names to the `--except` option:
For convenience, the `pennant:purge` command also supports an `--except-registered` flag. This flag indicates that all features except those explicitly registered in a service provider should be purged:
Copy file name to clipboardExpand all lines: pulse.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ For in-depth debugging of individual events, check out [Laravel Telescope](/docs
37
37
38
38
You may install Pulse using the Composer package manager:
39
39
40
-
```sh
40
+
```shell
41
41
composer require laravel/pulse
42
42
```
43
43
@@ -63,7 +63,7 @@ Once Pulse's database migrations have been run, you may access the Pulse dashboa
63
63
64
64
Many of Pulse's configuration options can be controlled using environment variables. To see the available options, register new recorders, or configure advanced options, you may publish the `config/pulse.php` configuration file:
65
65
66
-
```sh
66
+
```shell
67
67
php artisan vendor:publish --tag=pulse-config
68
68
```
69
69
@@ -97,7 +97,7 @@ public function boot(): void
97
97
98
98
The Pulse dashboard cards and layout may be configured by publishing the dashboard view. The dashboard view will be published to `resources/views/vendor/pulse/dashboard.blade.php`:
99
99
100
-
```sh
100
+
```shell
101
101
php artisan vendor:publish --tag=pulse-dashboard
102
102
```
103
103
@@ -256,7 +256,7 @@ php artisan pulse:check
256
256
257
257
As the `pulse:check` command is a long-lived process, it will not see changes to your codebase without being restarted. You should gracefully restart the command by calling the `pulse:restart` command during your application's deployment process:
258
258
259
-
```sh
259
+
```shell
260
260
php artisan pulse:restart
261
261
```
262
262
@@ -497,7 +497,7 @@ php artisan pulse:work
497
497
498
498
As the `pulse:work` command is a long-lived process, it will not see changes to your codebase without being restarted. You should gracefully restart the command by calling the `pulse:restart` command during your application's deployment process:
Copy file name to clipboardExpand all lines: reverb.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ In most cases, secure WebSocket connections are handled by the upstream web serv
91
91
92
92
However, it can sometimes be useful, such as during local development, for the Reverb server to handle secure connections directly. If you are using [Laravel Herd's](https://herd.laravel.com) secure site feature or you are using [Laravel Valet](/docs/{{version}}/valet) and have run the [secure command](/docs/{{version}}/valet#securing-sites) against your application, you may use the Herd / Valet certificate generated for your site to secure your Reverb connections. To do so, set the `REVERB_HOST` environment variable to your site's hostname or explicitly pass the hostname option when starting the Reverb server:
To improve performance, Reverb does not output any debug information by default. If you would like to see the stream of data passing through your Reverb server, you may provide the `--debug` option to the `reverb:start` command:
143
143
144
-
```sh
144
+
```shell
145
145
php artisan reverb:start --debug
146
146
```
147
147
@@ -152,7 +152,7 @@ Since Reverb is a long-running process, changes to your code will not be reflect
152
152
153
153
The `reverb:restart` command ensures all connections are gracefully terminated before stopping the server. If you are running Reverb with a process manager such as Supervisor, the server will be automatically restarted by the process manager after all connections have been terminated:
154
154
155
-
```sh
155
+
```shell
156
156
php artisan reverb:restart
157
157
```
158
158
@@ -210,7 +210,7 @@ Each WebSocket connection is held in memory until either the client or server di
210
210
211
211
On a Unix based operating system, you may determine the allowed number of open files using the `ulimit` command:
212
212
213
-
```sh
213
+
```shell
214
214
ulimit -n
215
215
```
216
216
@@ -229,7 +229,7 @@ Under the hood, Reverb uses a ReactPHP event loop to manage WebSocket connection
229
229
230
230
Reverb will automatically switch to an `ext-uv` powered loop when available. This PHP extension is available for install via PECL:
231
231
232
-
```sh
232
+
```shell
233
233
pecl install uv
234
234
```
235
235
@@ -284,7 +284,7 @@ The configuration above will allow up to 10,000 Nginx workers per process to be
284
284
285
285
Unix-based operating systems typically limit the number of ports which can be opened on the server. You may see the current allowed range via the following command:
Copy file name to clipboardExpand all lines: vite.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,14 +64,14 @@ Have you started a new Laravel application using our Vite scaffolding but need t
64
64
65
65
You must ensure that Node.js (16+) and NPM are installed before running Vite and the Laravel plugin:
66
66
67
-
```sh
67
+
```shell
68
68
node -v
69
69
npm -v
70
70
```
71
71
72
72
You can easily install the latest version of Node and NPM using simple graphical installers from [the official Node website](https://nodejs.org/en/download/). Or, if you are using [Laravel Sail](https://laravel.com/docs/{{version}}/sail), you may invoke Node and NPM through Sail:
73
73
74
-
```sh
74
+
```shell
75
75
./vendor/bin/sail node -v
76
76
./vendor/bin/sail npm -v
77
77
```
@@ -81,7 +81,7 @@ You can easily install the latest version of Node and NPM using simple graphical
81
81
82
82
Within a fresh installation of Laravel, you will find a `package.json` file in the root of your application's directory structure. The default `package.json` file already includes everything you need to get started using Vite and the Laravel plugin. You may install your application's frontend dependencies via NPM:
83
83
84
-
```sh
84
+
```shell
85
85
npm install
86
86
```
87
87
@@ -310,7 +310,7 @@ export default defineConfig({
310
310
311
311
If you would like to build your frontend using the [Vue](https://vuejs.org/) framework, then you will also need to install the `@vitejs/plugin-vue` plugin:
312
312
313
-
```sh
313
+
```shell
314
314
npm install --save-dev @vitejs/plugin-vue
315
315
```
316
316
@@ -354,7 +354,7 @@ export default defineConfig({
354
354
355
355
If you would like to build your frontend using the [React](https://reactjs.org/) framework, then you will also need to install the `@vitejs/plugin-react` plugin:
356
356
357
-
```sh
357
+
```shell
358
358
npm install --save-dev @vitejs/plugin-react
359
359
```
360
360
@@ -747,14 +747,14 @@ To ensure you don't forget to rebuild the SSR entry point, we recommend augmenti
747
747
748
748
Then, to build and start the SSR server, you may run the following commands:
749
749
750
-
```sh
750
+
```shell
751
751
npm run build
752
752
node bootstrap/ssr/ssr.js
753
753
```
754
754
755
755
If you are using [SSR with Inertia](https://inertiajs.com/server-side-rendering), you may instead use the `inertia:start-ssr` Artisan command to start the SSR server:
0 commit comments