Creating your own color system with Tailwind
In this post, Oh Dear's front end developer Nick goes into more detail on why and how he implemented a tailwind-like color system that will be used in the upcoming redesign.
Read more [ohdear.app]
In this post, Oh Dear's front end developer Nick goes into more detail on why and how he implemented a tailwind-like color system that will be used in the upcoming redesign.
Read more [ohdear.app]
As developers, we tend to like shortcuts to speed up our workflow. One of the tools I'm using to speed up doing stuff on my Mac is Raycast. It offers a lovely command palette that allows opening apps and URLs, working with clipboard history, and much more.
Wouldn't it be nice to also add such a command palette to a Laravel app? This way, power users of your app can get around quickly and perform small tasks without having to click around.
The good news is that there's already a package to add such a thing: Spotlight by Philo Hermans. In this blog post, I'd like to show how we use this fantastic package at Oh Dear.
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.
"Always fresh, useful tips and articles. Carefully selected community content. My favorite newsletter, which I look forward to every time."
– 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]
Jeffrey Way of Laracasts demonstrates what the Gambler's Ruin is using PHP.
Read more [laracasts.com]
– 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
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]
Here's a cool feature the Chrome team is working on. It's already available in Canary.
– 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]
Here's a new blog post by our designer Nick on how he's revamping the looks of Oh Dear.
Read more [ohdear.app]
"Were previous generations really better off because they merely watched TV, or listened to radio, or read books? All of these activities are passive. All of these activities involve letting external thoughts temporarily replace your own. Today’s smartphones differ from medieval books only in degree—all media is created to be consumed. I had to start creating."
So much this!
Read more [blog.tjcx.me]
– 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.
Read more [www.juststeveking.uk]
Larry Garfield shares a neat use of match
Read more [peakd.com]
Here's a small interview with the new developers that will receive funding via The PHP Foundation
Read more [thephp.foundation]
– doeken.org - submitted by Doeke Norg
The Middleware Pattern allows you to easily change the input and output of an action; one layer at a time.
Read more [doeken.org]
PHP is a wonderful dynamic language that's capable of many cool things. I recently stumbled upon something quite fantastic that I want to share with you.
A couple of months I go I had the honour giving a talk at the GPUG usergroup on how to convert a PHPUnit testsuite to Pest.
Nowadays, I use Pest as the default testrunner for every package / project that I start.
I'm proud to announce that our new premium course on writing readable PHP is now available. It's called Writing Readable PHP.
This course contains a collection of bite-size tips (both in written form and videos) that make your code a joy to read for your co-workers and future self. These tips are aimed towards developers who know the basics of PHP and want to improve their craft. As a bonus, you'll learn to use static analysis to ensure that your code is understandable and correct.
Writing Readable PHP has been created by our team and Christoph Rumpel. It contains our combined knowledge on how to write the best PHP possible.
Last month, The Laravel Documentary was released which showed the history behind Laravel. For the documentary a lot of people that are active in the Laravel community were interviewed.
From the footage that did not make into the documentary, the makers behind the documentary distilled a cool new short movie about PHP.
I'm honoured the some of my interview snippets made the cut. 😎
A super nice way to go about this, thanks to Philo. Cool stuff!
Read more [philo.dev]