Creating a Laravel specific package
John Braun wrote a good series on how to get started with Laravel package development
Read more [johnbraun.blog]
Posts tagged with laravel
John Braun wrote a good series on how to get started with Laravel package development
Read more [johnbraun.blog]
About a year ago, we released laravel-event-projector. It focused on adding projectors, an important concept in event sourcing, to Laravel.
After the release of the package, we continually kept improving it. We added aggregates, a way to test those, a brand new section in the our documentation that explains event sourcing from scratch, and DX improvements all across the board.
We now feel confident that the package is a good starting point for getting started with event sourcing in Laravel. That's why we're renaming the package to laravel-event-sourcing.
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"Freek publishes a super resourceful and practical newsletter. A must for anyone in the Laravel space"
I don't necessarly agree with every detail in this post, but it's very interesting to see how others structure larger projects.
In this article, I would like to show you an alternative way to organize your Laravel directory structure. I think the default structure is fine for the most projects. But when it comes down to larger projects I was looking for a different structure.
Read more [stefanbauer.me]
My buddy Mattias explains how you can use Laravel and Caddy to handle https traffic to dynamic subdomains.
We recently launched our new Status Page feature. Under the hood, it's using the Caddy proxy server and Laravel's subdomain routing to serve the right status page on the right domain. With this technology stack, we can automatically generate, configure & renewe the SSL certificates for custom domains of our clients.
Read more [ohdear.app]
My buddy Mattias and I are running an uptime checker service called Oh Dear. Earlier this week, we've launched a new major feature: status pages.
In this blog post, I'd like to walk you through what status pages have to offer. We'll also dive deep in some technical details of the underlying Laravel app.
Roberto B wrote a good tutorial on how to test your Laravel 6 application using GitHub actions.
The scenario that I would like to explain you is: I have a Web App based on Laravel 6, every time I push some new code on master branch on the GitHub repository, I would like to execute automatically Unit tests and Feature tests.
Read more [medium.com]
I'm currently organizing the Full Stack Europe conference. The first edition will be on 23 - 25 October in the beautiful city of Antwerp, Belgium. I believe that the best apps or sites aren't built by programmers. They're built by teams. That's why we designed this conference for everybody and don't stick to just one aspect of programming.
Tony Messias wrote a good post on the Madewithlove blog on how to get started using Elastichsearch in a Laravel app.
One of the most popular ways is using Elasticsearch. It is a very powerful tool and it comes with a variety of useful features and complementary tools. We are going to cover the basics here and leave you with some links for more resources if you want to dig further.
Read more [madewithlove.be]
Today at Laracon EU, Marcel Pociot and I unveiled Ignition, a beautiful new error page for Laravel. It is the new default error screen in Laravel 6 and you can manually install it into Laravel 5 applications. In this blog post, I'd like to tell you all about it.
These past eight months Marcel Pociot, me and our teams at Beyond Code and Spatie have been working on a secret project called Flare. We believe that Flare is going to change the way you work with Laravel. To be kept in the loop subscribe to our mailinglist.
We are going to launch it this Friday at Laracon EU at 16.30 local time (15:30 CET). The Laravel News YouTube channel will live stream the launch. You can watch the stream right below.
? If you need to process a lot of models, don't load them all into memory, but chunk them.
— Freek Van der Herten ? (@freekmurze) August 21, 2019
Laravel has a beautiful `each` method for this.https://t.co/cVWdpsGtQ1#laravel #php pic.twitter.com/ISW7XQcehx
Read more [twitter.com]
Stefan Bauer explains how to handle error message when you have multiple forms on one page
Here's another tip! Even if it's documented here I just wanted to show it. Here's the deal: Imagine you have multiple forms one page. For example one contact form and another newsletter signup form. Both of them might have an email field. So who do you know which email field doesn't validate and throws an error?
Read more [stefanbauer.me]
☝️If you are relatively new to Testing in Laravel. Here are 3 methods you NEED to be familiar with.
— Caleb Porzio (@calebporzio) August 21, 2019
Understanding these will make your life much easier. pic.twitter.com/x3mxjCsV9z
Read more [twitter.com]
If you're using #Laravel Valet in Europe:
— Sander van Hooft (@SandervHooft) August 19, 2019
Just discovered "valet share --region=eu".
Ngrok seems to default to the US region otherwise. Major speed improvement.
Read more [twitter.com]
From time to time our team needs to create fairly complicated CRUD interfaces from scratch. While this isn't rocket science, there surprisingly aren't that many good resource out there on how to do this. That's why our team dove in and published a couple of packages that can help create modern CRUD…
I just found out that a recent version of #Laravel Valet introduced a "valet use php@version" command. Make sure you upgrade Valet to get this functionality. ? pic.twitter.com/JW99xfJNNb
— Kevin McKee (@iAmKevinMcKee) August 12, 2019
Read more [twitter.com]
Unsung Laravel hero Joseph Silber opened up a very interesting PR to Laravel. Let's hope this one gets accepted.
Whereas the existing Collection class wraps a native array, the new LazyCollection class wraps a native iterator, while still providing most of the methods that we know and love from a regular collection.
Read more [github.com]
Christoph Rumpel wrote a clear post on how you can use Laravel's service container.
The service container is a quite complex topic, and I see many struggling to understand what it does. It was the same for me, and the main reason is that many explanations concentrate on "how" to use the container. With this article, I want to give you my introduction to this topic by focusing on the "why" and "when" the container can help us with our dependencies.
Read more [christoph-rumpel.com]
Patrick Brouwers, the creator of Laravel Excel, explains how to handle failing jobs in Laravel
When designing software, don’t only think about the happy path. Write down (preferably with (unit) tests) what all the things are that could go wrong. Then design your solution to be able to recover those situations. (Wether or not automatic.) There isn’t a single solution to rule them all, some processes might need to have specific failure handling while others are fine with the default approach.
Read more [medium.com]