PHP
Using composer patches
When you use software that is open source, you’ll sometimes run into issues or small bugs that have already been fixed by the community in a PR or an issue, but have yet to be Read more…
When you use software that is open source, you’ll sometimes run into issues or small bugs that have already been fixed by the community in a PR or an issue, but have yet to be Read more…
MeiliSearch is a simple self-hosted full-text search solution that’s easy to integrate into a Laravel applicationâtheir team even maintains a Laravel Scout driver! Read More
ð¡ Advanced @laravelphp tip! If you’re using the $attributes variable in a Blade Component, you’re using the ComponentAttributeBag class, which is macroable ð I wrote a macro to dynamically toggle classes by accepting an array, Read more…
Modals can be a pain in the ass, but there’s no way around them. I’m currently working on an application where we need them. Whilst working with Inertia.js and Vue.js we have many options available, Read more…
This tutorial walks through how to set up your Laravel application to use Zapier to post tweets. Read More
Using the new parallel testing feature that recently landed in Laravel, we managed to run the Oh Dear testsuite about four times faster. Read More
Using @LaravelLivewire it is incredibly easy to display real-time progress of batched jobs! ð¥ Just drop in this simple trait & blade component and you’re off to the races #hottip pic.twitter.com/I6K1zalzeJ — Willem Leuverink (@gwleuverink) Read more…
PHP 8.1 is currently in active development and will probably be released somewhere around the end of November 2021. We already know some features, changes and deprecations, so let’s go through them one by one. Read more…
[AdSense-A]
Using our laravel-mail-preview package, you can quickly display mails that are sent by your Laravel application in your browser.
Today, we've released v5 of the package. In this blog post, I'd like to tell you all about it.
This package was not originally created by our team, but by Mohamed Said. Ever since Mohamed released it, we've been using it in several of our projects. Because we wanted to modernize the package, and Mohamed didn't have time to do this, Mohamed graciously decided to hand over the package to us. We'd like to thank Mohamed for entrusting his work to us.
If you were already using themsaid/laravel-mail-preview
v4, then the only thing you need to do is change that in your composer.json
to spatie/laravel-mail-preview
v4. The API is identical; nothing has changed in the v4 version.
A new major release of spatie/laravel-mail-preview, v5, was released today. This version is a rewrite v4 using the latest and greatest Laravel features.
The core functionality has remained the same. Whenever a mail is sent in your application, the package will inject a small overlay with a link to that sent mail. This is what that overlay looks like.
This allows you to test out the mail in your browser quickly. This is pretty handy when using the site locally. For example, when you want to change your password, you can simply submit the forgot password form. The link to the mail will be displayed in your browser. When you click it, you see the mail's content, and you can click the reset password link. So, you can use the entire e-mail flow without leaving your browser.
This package is also convenient in Dusk tests. Using the same scenario as above, you can quickly write a Dusk test to test that reset password flow. You just have to click links using the automated browser in your test.
We've made sure that the package is extensible, you can publish the views to customize that overlay and how the content of a mail is displayed. When a mail is stored, an event is fired, so you can listen for that to perform custom logic.
Additionally, the package will also store any sent mails in the storage
directory of your app. Two versions will be stored. The HTML
version can be displayed in the browser, the eml
version can be opened in any modern e-mail client. This allows you to see how the mail looks like in your particular e-mail client.
Right now, the package only has the feature set that Mohamed initially coded up. We've got some features in mind that we'll add to the package soon to make it even easier to test your e-mails. Keep an eye out on the repo.
Be sure, to also take a look at this list of packages that our team has created previously.
Thanks again Mohamed for entrusting us with your great package. We'll take good care of it!
(more…)Here’s a simple approach on how to use cookies with AlpineJS Read More