in
Laravel
Sending a test email from laravel artisan tinker
Debugging failing email can be a big pain. One of the steps is to send a test email from your production server. This snippet provides an easy way to do so.
use \Illuminate\Support\Facades\Mail;
Mail::raw(
'Test mail body',
fn ($message) => $message->to('[email protected]')->subject('Test mail subject')
);
Related articles
Laravel query scopes
Laravel Eloquent Query Scopes can save time and eliminate inefficiencies when retrieving data from the database by allowing you to define reusable queries.
Read more
Zip-archive on the fly in Laravel
We take a quick look on how to compress a zip-archive containing multiple files on the fly in Laravel without saving it to our server.
Read more
Saving a html canvas element to your server
Saving user-generated content from an HTML canvas element to a PHP backend can be a useful way to store and process canvas-based graphics and images.
Read more