Patrick Schocke
62 posts

Patrick Schocke
@SchockePatrick
Full Stack web developer. In Love with Laravel ❤️ https://t.co/hJ4LsKYeP7
Münster, Deutschland Katılım Ocak 2020
57 Takip Edilen13 Takipçiler

Hey @stripe
We have some customers that sent too much money via Cash Balance transaktions. They get an email from you requesting details where to sent the money back, however we can’t see these details in the dashboard or the api. We only see successfully sent back. Now they
English

@euboid @PirschAnalytics @PlausibleHQ @Hetzner_Online Should also mention that they offer a api that you can use to build the client facing dashboard.
English

@euboid @PirschAnalytics We are collecting multi million pageviews with a @PlausibleHQ self hosted installation on a 5$ @Hetzner_Online server. Without any issues. They offer a managed version as well with a 69€ Tier for 1m pageviews.
Maybe something you can look into.
English
Patrick Schocke retweetledi

⚡️ Database Tip
Sometimes you want to get e.g. the last three orders for *every* customer. Normal joins can't do that. You have to execute n+1 queries in code, which is slow!
But with lateral joins, you can do one for-each loop join in SQL 🤯
sqlfordevs.io/for-each-loop-…

English

@aboutberlin @BSR_de Well written guide! Even I (as a native German) am some times confused about our recycling.
Recently I’ve started a map to show all recycling locations on a map. Maybe it’s worth mentioning (even tho it’s in German)?
entsorgungsmoeglichkeiten.de/map?search=Ber…
English

I have rewritten my recycling guide. Have you also been doing wrong all these years? (hello, @BSR_de!)
buff.ly/3ls3X0u

English

@_duncanmcclean @1stevengrant @jackmcdade @tailwindcss Thanks! I’ve looked into it a while back and as far as I remember the problem I found was either that it hasnt properly worked with database users or because some views like e.g. listing all users that booked a course was not that accessible. But I will look at it again for sure!
English

Statamic is such a killer tool for prototyping almost anything really quickly. Allow me to prove it.
Spinning up a new site takes seconds, no database config required, and it's free.
Bring your own HTML/CSS and it ships pre-wired for JIT @tailwindcss and JS.
🧵
English

@RobinMartijn @PovilasKorop Yes, the number of full years.
English

@calebporzio Would be cool if we could see a Livewire implementation on this, the official way
English

@erchechoagain You could just delete the stored telegram token from your app.
Your bot has still access to the user (I don’t think it’s possible to revoke this via the api) but your local user can connect again.
English

@SchockePatrick Thank you for the Login Telegram tutorial. Is there any way to Logout and destroy the session, so you have to enter your account again?
English

@agustingomes @xorik_dev @enunomaduro You could also reference a method on the object, but that also doesn’t look too sexy.
English

@xorik_dev @enunomaduro theoretically you could use the arrow function, but I dunno, I would agree this seems like a terrible idea without additional context.
English
Patrick Schocke retweetledi

TIL: you can override some form's attributes from a button with things like `button[formaction]`, `button[formmethod]`, and more!
Source: #attr-formaction" target="_blank" rel="nofollow noopener">developer.mozilla.org/en-US/docs/Web…

English

@RamboVivaldi @PovilasKorop So what’s your approach? Just rewrite it from scratch in Laravel 9 or just refactor piece by piece until you have a maintainable codebase?
English

@PovilasKorop Working on a project now to bring a legacy codebase into the modern era. The dev who wrote this has been working on this codebase exclusively for 10 years (starting with PHP 3) and has never been exposed to anything else. To say that the codebase is horrific is an understatement.
English

@PovilasKorop It would say it depends. We have some projects with completely separate user and admin areas. The user things are fairly complex but admins are super basic. Using Nova we usually create a separate auth guard that is only used by nova, separate login and everything.
English

To any Laravel dev who needs to hear this:
- Do NOT store users/admins in separate DB tables, use roles/permissions
- Do NOT use Guards for users and admins, use roles/permissions
My PR to the docs: github.com/laravel/docs/p…
My video on roles/permissions: youtube.com/watch?v=kZOgH3…

YouTube

English

@the_augg @morflax_com I am so happy that I bought the lifetime membership in the beginning. Such a cool Tool, loved it every day since! 🚀
English
Patrick Schocke retweetledi

@JackEllis I’ve programmed from the age of 15. At 18 I started as an intern and later that internship got me an apprenticeship at the same company. That apprenticeship finished one year ago and now I am a full stack web developer at this company.
English














