How to use Laravel Facades safely
– arunas.dev - submitted by Arunas
I share a common misstep when working with Laravel Facades so you don't have to make the same mistake.
Read more [arunas.dev]
In this section you'll find links submitted by others.
Did you write or stumbled across a blog post, tutorial or video that might be interesting for others?
To be able to submit a link you need to log in first.
Log in– arunas.dev - submitted by Arunas
I share a common misstep when working with Laravel Facades so you don't have to make the same mistake.
Read more [arunas.dev]
– siipo.la - submitted by Peter
What’s the best lossless image format? Comparing PNG, WebP, AVIF, and JPEG XL
Read more [siipo.la]
Laravel doesn't come with a database driver for logging so I built one and packaged it up.
Read more [yoeri.me]
It can be unclear how to write Statamic tests. Here's a trait I wrote that makes it easy to test your Statamic implementation.
Read more [yoeri.me]
– blog.harun.dev - submitted by Harun R
AWS Cloud is scary for newbies because of the complexity of deploying applications and pricing. Amazon Lightsail can be the best entry point. Deploying a Laravel app can be the best way to start.
Read more [blog.harun.dev]
– stefanzweifel.io - submitted by Stefan Zweifel
Ever needed to work with an SDK and wished you could use `Http::fake()` in your Laravel tests? This blog post explains how you can achieve this for the Facebook Business SDK using the Adapter pattern.
Read more [stefanzweifel.io]
This post describes what to do when a user returns from Paddle or Stripe but the web hook confirming the subscription hasn't run yet.
Read more [yoeri.me]
– ryangjchandler.co.uk - submitted by Ryan Chandler
After integrating Tippy into a few projects with Alpine.js, I decided to write my own plugin to make the integration easier and the API a little nicer (`x-tooltip` and `$tooltip`).
Read more [ryangjchandler.co.uk]
– kbouzidi.com - submitted by Khalil Bouzidi
In this article, we will see how we can do file upload from react native mobile app to a laravel API, we will also cover validations, error response, and some other cool stuff 🤓.
Read more [kbouzidi.com]
– protone.media - submitted by Pascal Baljet
I've created a little package that automatically starts and configures a MinIO server for each test. You can choose to start a new server for each test or use the same server for the entire test suite.
Read more [protone.media]
– ralphjsmit.com - submitted by Ralph J. Smit
In this tutorial I'll show you how to send e-mails from Laravel with Tailwind CSS. I'll learn you how to set this up and how to inline all the Tailwind CSS-classes.
Read more [ralphjsmit.com]
– medium.com - submitted by Barbora Juhasova
Has it ever happened to you that clients were dissatisfied, demanding to know why buying two products priced 149.99€ + 159.99€ was asking their clients to pay 309.99€ instead of 309.98€? We know something about that; that’s why we published our new blog post by our Senior developer Kika. Enjoy!
Read more [medium.com]
– www.juststeveking.uk - submitted by Steve McDougall
In Laravel 5.1 the Command Bus was replaced with Dispatchable Jobs, we can still use them but let us also look at how to add a Command Bus.
Read more [www.juststeveking.uk]
– tighten.com - submitted by Jamison Valenta
In this post, Marcus explains the fundamentals of Blade components. A great introduction or review, this post walks you through the process of creating an extensible button component that contains the code common between button types, with additional interactivity powered by Alpine.
Read more [tighten.com]
– www.juststeveking.uk - submitted by Steve McDougall
Of all of the design patterns you could use in your code, the adapter pattern is one of my all time favourites. It allows you to abstract the implementation to an adapter that implements an interface. so you can switch implementation simply by switching the adapter.
Read more [www.juststeveking.uk]
– www.juststeveking.uk - submitted by Steve McDougall
I get asked about API response testing a lot, how should you do it, and where to start. I have a general rule when it comes to testing APIs, and that rule is: "test your code, and your code only". What do I mean by this? Let me explain:
Read more [www.juststeveking.uk]
In this article, I will show you how to implement WebSocket service with PHP and Open Swoole.
Read more [dev.to]
– chriswhite.is - submitted by Chris White
Using PHPUnit data providers is a succinct way of testing your form's validation rules. This post will show you how.
Read more [chriswhite.is]
– rushflow.io - submitted by Daniel Vigueras
Choosing a Continuous Integration / Deployment tool to build, test, and deploy your code can be hard due to the wide number of options available. In this article, I describe the main characteristics of three of the most known services.
Read more [rushflow.io]
– www.juststeveking.uk - submitted by Steve McDougall
In a typical Laravel application we are very used to doing things in a certain way, by the book as they say. However there comes a point in the applications lifetime that it is going to be easier to start looking to split this code into Domains so that we can logically group our code. Our first step is to decide what is our domain code and what is our application code, and the simplest way to do that is to keep anything that can be directly accessed from the outside world (as in web, cli or API) inside of the App namespace. From here we can start to define our domain boundaries, try to think of these in broader terms that just “A post must be in the Post domain” as you aren’t solving any problems at that point.
Read more [www.juststeveking.uk]