Simon Kollross (@skollro) header
Simon Kollross (@skollro) profile picture

Building @simplesellapp. Laravel, PHP and JavaScript fullstack developer. Elegant code enthusiast. Database expert.

Landshut, Bayern
Joined June 2015
Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)Photo by Simon Kollross (@skollro)
✍️ I've just published “Repositories and their true purpose” #laravel #php #patterns muhammedsari.me/repositories…
7
21
5
72
12,572
⚡️ Database Tip For e.g. a dashboard, multiple queries on the same rows have to be executed to calculate different statistics. However, these queries can also be combined into one query that has to scan the rows only once! sqlfordevs.com/multiple-aggr…
8
94
4
612
44,503
Simon Kollross retweeted
#Laravel devs, if you use uuids, #eloquent provides a HasUuid trait that helps you automatically generate Uuids when creating a model. But, do you also maintain an auto-increment primary key? You may find it convenient to wrap your own HasUuid trait over Eloquent.
12
42
1
112
12,335
Simon Kollross retweeted
🗣️ Let’s talk shadows! Recently, I’ve noticed a few people doing this sort of stroke treatment on containers, buttons and other elements, and it hurts my feelings, lol.
36
92
12
1,391
318,121
Hey @pie6k! Any plans to add some kind of sensitive data masking feature to Screen Studio? Would be great to record tutorials where you have to enter sensitive information or hide/blur usernames in specific sections of the screen 😊
112
16 killer apps to generate perfect backgrounds in seconds (10X productivity):
68
465
10
1,383
236,430
⚡️ Database Tip When doing statistical aggregations by time, you may have e.g. days without data leading to strange results when charting the results. But you don't have to fill these gaps manually with code, the database can do that for you. sqlfordevs.com/statistical-r…
8
29
1
203
22,829
Simon Kollross retweeted
I've seen questions about this several times before and I finally found a chance to write about it. divinglaravel.com/removing-j…
2
21
1
87
Hey @themsaid! Question regarding batches: Is it safe to add new jobs to the same batch in the `then` method? It seems to work (the batch resumes) but I'm not sure if that's the intended behavior. I want to be sure that it won't be removed without prior notice... 😅
Simon Kollross retweeted
I've always loved how much polish a subtle animation like the one on this Stripe button can add to a UI 😍 Let me show you how to recreate it with Tailwind CSS! 🧵
22
95
9
1,168
Hey @JohnMu @googlesearchc! How long does it take until a redirected URL is updated in the SERP? Same content, but permanent redirect to new URL. Waiting for about 9 months now… 🤔
2
⚡ Database Tip Duplicate rows are created easily by mistake, but can be deleted much easier: You can in a *single* SQL query specify the duplicate rows to keep and also keep more than one! sqlfordevs.io/delete-duplica…
14
60
3
305
📝 When avoiding <img> layout shifts, what's best? aspect-ratio, or width & height attributes? There's some misinformation & misunderstanding around this stuff, so here's a bunch of demos and spec digging to explain how it works. jakearchibald.com/2022/img-a…
26
222
12
1,111
📦 A new smallish @spatie_be package has appeared: laravel-options github.com/spatie/laravel-op… This package makes it simple to transform enums, models, states and arrays to a unified option structure. Blogpost by author @rubenvanassche: freek.dev/2287-introducing-o… #php #laravel
3
16
1
106
Simon Kollross retweeted
There's actually a formula for this if you wanted to go a step further — inner radius = outer radius - distance between outer and inner edge
⚪️Tip - 43 Border Radius
87
731
105
6,061
⚡️ Database Tip Extending a traditional database schema with NoSQL-like JSON columns can make the schema more understandable. But you should also ensure these JSON documents conform to an expected schema! sqlfordevs.io/json-schema-va…
12
46
1
242
I once saw a #PHP package here on Twitter where you could define some rules that your code had to follow. Rules like „every class in a special folder requires the suffix ‚Controller‘“ Does anyone remember the name of this package? 😊 #Laravel
5
2
7
Simon Kollross retweeted
Laravel 9.18.0 is out today. Naturally, it has some *fire* features that I think you'll dig. Let's jump in. First, @timacdonald87 introduced a new method that invokes a closure if cumulative time you spend querying the database during a request exceeds a threshold ⌛
28
165
27
854
Toyed around a bit with materializing query results as JSON right away within #Postgres (based on typed tables, no JSON(B) columns), avoiding the need for any app-side mapping. Are folks doing this in production? Any recommended write-ups on pros/cons/experiences 🙏?
25
22
4
166