Simon Kollross

812 posts

Simon Kollross banner
Simon Kollross

Simon Kollross

@skollro

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

Landshut, Bayern Katılım Haziran 2015
125 Takip Edilen285 Takipçiler
Simon Kollross
Simon Kollross@skollro·
@enunomaduro IMHO after_commit is a quick-and-dirty solution to this problem. Just return events instead of firing them instantly for a cleaner flow. If a method returns an event, you know you have to dispatch it while having full control over when and where.
English
0
0
1
64
nunomaduro
nunomaduro@enunomaduro·
🚨 AVOID This Mistake in Your Laravel DB transactions: if you’re dispatching queue jobs within transactions, do yourself a favor—enable “after_commit” globally and avoid the headaches… Check this video: youtu.be/N0jlh912xcM.
YouTube video
YouTube
nunomaduro tweet media
English
6
19
127
13.7K
Simon Kollross
Simon Kollross@skollro·
@benjamincrozat I only use them for soft deletion. In most other cases, adding scopes locally makes code more explicit and easier to reason about.
English
0
0
0
32
Benjamin Crozat
Benjamin Crozat@benjamincrozat·
Something deadly Laravel offers too: Global Eloquent scopes. I've been bitten is the ass so many times. Even in my own small codebases that I last worked on 24 hours ago. Should I stop using them? I think I will.
English
17
0
36
7.4K
Marcel Pociot 🧪
Marcel Pociot 🧪@marcelpociot·
Laravel Herd 1.6 for macOS is now available - and it's a big one! Most importantly, it adds PostgreSQL 14, 15 and 16 (+ popular extensions like pgvector and PostGIS). Also, Typesense can now be used as a Scout-compatible search engine with a single click herd.laravel.com
Marcel Pociot 🧪 tweet media
English
12
13
171
16.5K
Simon Kollross
Simon Kollross@skollro·
@davidhemphill Just combine both and let the use-case decide about the level of flexibility. Use the prop values as default values for the slots.
English
2
0
8
463
Hemp
Hemp@davidhemphill·
Which Vue component API do you prefer? Your code looks cleaner when using props, but props are not as flexible as slots. When using slots, the parent gets the most flexibility for customization, but the code can get cluttered with template tags.
Hemp tweet mediaHemp tweet media
English
9
1
11
8.4K
Simon Kollross
Simon Kollross@skollro·
@taylorotwell An interface or a method which indicates that some types of failed jobs can not be retried (using Horizon) 😎
English
0
0
0
113
Taylor Otwell
Taylor Otwell@taylorotwell·
Any little Laravel annoyances you would like to see fixed in the next major release? ❤️
English
280
28
358
124.7K
Simon Kollross retweetledi
Tobias_Petry.sql
Tobias_Petry.sql@tobias_petry·
⚡️ 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-aggre…
Tobias_Petry.sql tweet media
English
8
94
610
44.5K
Simon Kollross
Simon Kollross@skollro·
@tobias_petry Pessimistic locking is one of the most underrated features of databases 😎
English
0
0
0
149
Tobias_Petry.sql
Tobias_Petry.sql@tobias_petry·
⚡️ Database Tip Many applications are still not doing anything to prevent race conditions or use pessimistic locking incorrectly. They load some data, validate input and update the database. If you co-operate with your database this task is easy. sqlfordevs.com/transaction-lo…
Tobias_Petry.sql tweet media
English
3
7
95
11.6K
Simon Kollross retweetledi
Newton Job
Newton Job@_newtonjob·
#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.
Newton Job tweet media
English
12
43
112
12.3K
Simon Kollross
Simon Kollross@skollro·
@statamic More about the different deployment options, especially best practices for high availability with content editing in production, managing a separate CMS environment for editors, etc.
English
0
0
0
135
Statamic
Statamic@statamic·
What can we do to improve our docs?
English
19
2
6
9.8K
Freek Van der Herten
Freek Van der Herten@freekmurze·
👍 We’ve fixed an oversight in Ray. It will now also display the context of your log items Thanks for bringing this to our attention @michaeldyrynda myray.app
Freek Van der Herten tweet media
English
3
1
48
13.7K
Simon Kollross retweetledi
James McDonald
James McDonald@jamesm·
🗣️ 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.
James McDonald tweet media
English
37
92
1.4K
317.4K
Simon Kollross
Simon Kollross@skollro·
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 😊
English
0
0
0
111
Simon Kollross retweetledi
Madza 👨‍💻⚡
Madza 👨‍💻⚡@madzadev·
16 killer apps to generate perfect backgrounds in seconds (10X productivity):
English
68
474
1.4K
236.3K
Simon Kollross retweetledi
Tobias_Petry.sql
Tobias_Petry.sql@tobias_petry·
⚡️ 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-re…
Tobias_Petry.sql tweet media
English
8
29
204
22.8K
Simon Kollross
Simon Kollross@skollro·
@taylorotwell @driesvints Great addition! Would also love to have an option where you can remove the retry button from a few jobs that you should not be able to retry via the Horizon Dashboard if they‘ve failed 🤔
English
0
0
1
523
Taylor Otwell
Taylor Otwell@taylorotwell·
I new "silenced" configuration option has been added to Laravel Horizon. 🤫 This allows you to put jobs you don't *really* care about on a separate "silenced" tab so that your "completed" tab isn't bogged down with noise. Thanks @driesvints! 🔥
Taylor Otwell tweet media
English
8
19
230
40.2K
Davor Minchorov
Davor Minchorov@davorminchorov·
❓ You have the following enum in your PHP / Laravel / Symfony / Laminas / Spiral app. Would you store the values as: A) Integers B) Strings in your database? I am curious to see how the community would go about this.
Davor Minchorov tweet media
English
61
27
205
0
Simon Kollross
Simon Kollross@skollro·
@PovilasKorop Would choose store() and destroy() or probably invokable single action controllers in this case. Final decision depends on domain model and routes.
English
0
0
0
0
Povilas Korop | Laravel Courses Creator & Youtuber
Need opinions. You need to create API endpoints for START or STOP the parking order. Would you stick to the CRUDdy design and name controller methods store() and update()? Or even destroy() here? Or would you make it close to the meaning and name methods start() and stop()?
English
49
1
70
0
Tobias_Petry.sql
Tobias_Petry.sql@tobias_petry·
That's a really unexpected behavior by MySQL on default. Really alarming.
English
9
2
46
0