Laravel Mailbox in-depth walkthrough
Marcel Pociot recently released another awesome package: laravel-mailbox. In a new post on his blog he guides us through the code.
Read more [marcelpociot.de]
Marcel Pociot recently released another awesome package: laravel-mailbox. In a new post on his blog he guides us through the code.
Read more [marcelpociot.de]
Caleb Porzio created a new Laravel package with a couple of very usefull functions.
I packaged up all the helper functions I use in my projects. They are cool. You can install it by running composer require calebporzio/awesome-helpers.
Read more [calebporzio.com]
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’s newsletter is one of the best ways to stay updated with the Laravel and PHP ecosystem. It consistently highlights useful packages, tools, and ideas from the community, especially the amazing work coming from Spatie. As a Laravel developer building SaaS and web platforms, I find it extremely helpful to discover practical tools and insights that improve my development workflow."
Laravel comes with a very handy tinker command out of the box. Unfortunately running multiple lines of code on the command line, or editing the code you just executed, can be a bit bothersome. That's why we created a new package called laravel-web-tinker that allows you to run arbitrary code in your…
This article by Jason Cohen contains some great tips on how to get started with your (hobby) project.
With SLC, the outcomes are better and your options for next steps are better. If it fails, that’s OK, it’s a failed experiment. Both SLCs and MVPs will have that result because the whole point is to experiment. But if a SLC succeeds, you’ve already delivered business value and you have multiple futures available to you, none of which are urgent.
Read more [blog.asmartbear.com]
Mohammed Said shows a great way on how to handle db connections in a multi tenancy Laravel app.
The majority of applications just communicate with a single database. However, a considerable portion of laravel applications communicates with multiple databases. There are some neat packages that help with managing multiple connections, but it'd be useful if we understand how database connections work in Laravel, so let's dive in.
Read more [divinglaravel.com]
Jez Swanson, an engineer at Google, wrote a very pretty explanation on how Fourier transormations work and what their role is in storing sounds and images.
The Fourier transform is an extremely powerful tool, because splitting things up into frequencies is so fundamental. They're used in a lot of fields, including circuit design, mobile phone signals, magnetic resonance imaging (MRI), and quantum physics!
Read more [www.jezzamon.com]
JavaScript has two zeros: −0 and +0. This post explains why that is and where it matters in practice.
Read more [2ality.com]
I love this pattern; and it works for any promise, with a bit of setup pic.twitter.com/kvsHU6zmpd
— assertchris (@assertchris) January 30, 2019
Read more [twitter.com]
TIL #Laravel's clear:cache command has an optional "store" argument. This makes it really easy to quickly clear out the 3700 queued jobs you don't want to wait for. pic.twitter.com/dz0csvR3Ht
— Alex (@AlexVanderbist) January 31, 2019
Read more [twitter.com]
The past few days videos have been added to the Laracon EU channel on YouTube. It now contains recordings of all talks given at the 2018 edition of the conference.
Here's a playlist that contains all videos of the 2018 editions.
Below you can watch the talk I gave on our medialibrary.
Brent shares a few tips on how your can interpret data from Analytics correctly.
I've been running this blog for almost three years now. I've used Google Analytics, not only to track the amount of users, but also to actively improve my blog. I'm no marketeer, just a simple developer. Today I want to share from my technical experience, how I use traffic data and react to it.
Read more [stitcher.io]
Neat little Laravel internal tip: When you want one of your classes to forward method calls to a different class, you can use the "ForwardsCalls" trait. The trait takes care of forwarding the method calls as well as catching possible exceptions. pic.twitter.com/F4dGypBNk7
— Marcel Pociot (@marcelpociot) January 23, 2019
Read more [twitter.com]
Here’s another: see the public keys of a github user by adding ‘.keys’ to their profile URL:
— Bramus! (@bramus) January 23, 2019
? https://t.co/GaHnUISqM1
? https://t.co/zIeqVbxQbE
Read more [twitter.com]
Christian Stettler explains why domain events and event sourcing should not be mixed up.
What do domain events have in common with event sourcing? Certainly the word “event” in the name. But beyond that, when talking to architects and developers in projects, at conferences or trainings, I often hear that domain events go well with event sourcing and that event sourcing is an ideal source of domain events. In this blog post I would like to outline why I personally do not share this view.
Read more [www.innoq.com]
Christopher Pitt has created a new package called phpx that bring the power of LiveView to PHP.
A few days ago, Caleb Porzio demonstrated some work he’s been doing; to replicate Phoenix LiveView in Laravel. I’ve been building PHP preprocessor stuff for a long time, and this really inspired me to try the same thing.
Read more [assertchris.io]
Having a lot of migrations might slow down your tests. My colleague Alex shares how you can fix this.
One of the larger test suites I run daily has about 1500 tests in it. It takes just over 4 minutes to complete at an average of 160ms per test. That's pretty good. However, lately I've noticed a delay between starting PHPUnit and running the first test. This delay grew to the point where running a single test would take almost 12 seconds with the setUp method using most of that time on... migrations.
Read more [alexvanderbist.com]
When working on a project with other people, it's important to pick a coding standard. A coding standard like PSR-2 in the PHP world specifies rules on where certain characters, like braces of an if statement, or comma's should be put. Agreeing on a coding standard makes the code more readable for…
? Tip: sometimes I want to perform a quick validation check outside of the normal “Validator” flow and then respond with the same HTTP response format the validator would use. You can easily do this using “ValidationException::withMessages()”… #HiddenGem pic.twitter.com/1Du0e8yrSH
— Taylor Otwell ⚗️ (@taylorotwell) January 17, 2019
Read more [twitter.com]
Refactoring is an excellent book written by Martin Fowler. He recently released a second edition. I'm reading it now and can recommend it to anyone interested in writing better code. Here's an interview with the author on the second edition of the book.
InfoQ interviewed Fowler about the major changes in the 2nd edition of Refactoring, how to recognize code smells and refactor code, how code reviews and refactoring support each other, what tech leads can do to encourage refactoring, the benefits refactoring brings, using tools for refactoring, and mob programming.
Read more [www.infoq.com]
Here's a cool video by Caleb Porzio where he demonstrates his proof of concept port of Phoenix LiveView in Laravel.
I recently read through this blog post about Phoenix LiveView and got really excited for what might be possible in Laravel. I started hacking on a little proof of concept in Laravel and quickly realized this might be a game changer.
Read more [calebporzio.com]