This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I've encountered WebSocket issues in Laravel since Laravel 5, and it persisted through versions 9, 10, and now 11. The primary problem has always been getting WebSockets to run over WSS/HTTPS. | |
| After numerous attempts, I found a solution to successfully run WebSocket over SSL. Here's how I did it. | |
| Steps to Run WebSocket with SSL in Laravel | |
| 1. Generate SSL Certificates for your Domain or Host IP | |
| First, generate the private key, CSR (Certificate Signing Request), and certificate for your domain (e.g., you-domain.net). | |
| # Generate a private key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const csrf = `${pm.environment.get('URL')}/sanctum/csrf-cookie`; | |
| pm.sendRequest(csrf, (error, response) => { | |
| pm.expect(error).to.equal(null); | |
| pm.expect(response).to.have.property('code', 204); | |
| pm.expect(response).to.have.property('status', 'No Content'); | |
| const xsrfCookie = response.headers.find(header => header.key.toLowerCase() === 'set-cookie' && header.value.includes('XSRF-TOKEN')); | |
| if (xsrfCookie) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Filament\Resources; | |
| use App\Filament\Resources\UsersResource\Pages; | |
| use App\Filament\Resources\UsersResource\RelationManagers; | |
| use App\Models\Company; | |
| use App\Models\Folder; | |
| use App\Models\User; | |
| use App\Models\Users; |
- Adopted from: https://stubby4j.com/docs/admin_portal.html
- Inspired by Swagger API docs style & structure: https://petstore.swagger.io/#/pet
Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...
What this guide covers:
