Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chipslays authored Feb 16, 2023
1 parent 1600d70 commit f964c82
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions examples/laravel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -39,7 +42,9 @@ echo 'PORTER_CERTIFICATE=/etc/letsencrypt/live/<YOUR_SITE.COM>/cert.pem' >> .env
echo 'PORTER_PRIVATE_KEY=/etc/letsencrypt/live/<YOUR_SITE.COM>/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.

Expand Down

0 comments on commit f964c82

Please sign in to comment.