From f964c8271f4a38bf515ca51bc0f4d0459434c8b7 Mon Sep 17 00:00:00 2001 From: chipslays Date: Thu, 16 Feb 2023 12:52:08 +0400 Subject: [PATCH] update readme --- examples/laravel/README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/examples/laravel/README.md b/examples/laravel/README.md index f36dbbe..824402f 100644 --- a/examples/laravel/README.md +++ b/examples/laravel/README.md @@ -22,11 +22,14 @@ composer require chipslays/porter php vendor/bin/porter template:laravel ./websocket ``` -Tip: You can also create a event class. +> **Note** +> +> You can also create a event class by command: +> ```bash +> vendor/bin/porter make:event ./websocket/events/example.php "example event" +> ``` + -```bash -vendor/bin/porter make:event ./websocket/events/example.php "example event" -``` 4. Add variables to `.env` file. @@ -39,7 +42,9 @@ echo 'PORTER_CERTIFICATE=/etc/letsencrypt/live//cert.pem' >> .env echo 'PORTER_PRIVATE_KEY=/etc/letsencrypt/live//privkey.pem' >> .env ``` ->**NOTE:** On VPS with SSL certificate set `PORTER_TRANSPORT=ssl` and provide path to certs in `PORTER_CERTIFICATE` and `PORTER_PRIVATE_KEY`. +> **Warning** +> +> On VPS with SSL certificate set `PORTER_TRANSPORT=ssl` and provide path to certs in `PORTER_CERTIFICATE` and `PORTER_PRIVATE_KEY`. 5. Run websocket server.