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
Fix for Docker Desktop disk bloat (10GB+) caused by Laravel, Lumen/PHPUnit test suites. Includes instructions for migrating /tmp to tmpfs (RAM) for faster, self-cleaning unit tests.
Docker Optimization: Fixing disk bloating from unit tests
If your Docker Desktop Docker.raw file is exploding in size (10GB+), and you run frequent unit tests in a Lumen/Laravel environment, the culprit is likely orphaned files in /tmp.
This guide shows how to identify the bloat and move temporary test data to RAM for a faster, self-cleaning setup.
1. Identify the culprit
When Docker Desktop shows high disk usage, first check where the data is sitting:
A concise guide for Laravel developers to optimize VS Code with recommended settings.
Improve your VS Code as Laravel Developer
VS Code is a powerful and versatile code editor that can be customized to enhance your development experience as a Laravel developer.
Here are my favorite settings:
Open the settings.json file in VS Code by pressing Ctrl + , or Cmd + ,.
Soketi defaults to app-id, app-key, and app-secret after configuring broadcasting environment variables in the.env file. To use our own values, we should define them in docker-compose.yml as follows:
Get sender & receiver information in Mailable event listner in the Laravel
How to retrieve the name and email address in Laravel listner event to track emails status?
Laravel provides excellent support for email sending. Sometimes you need to record the status of outgoing emails in the system. You must construct two tables: email_logs and email_log_statuses. The 'email_logs' table contains all outgoing emails, while the email_log_statuses table contains all email statuses such as sent, failed, queued, scheduled to send, and so on.
Now, create Event Listeners During the email-sending process, Laravel triggers multiple events. You can set up event listeners to record these events and update the email log accordingly.