Michael Dyrynda 

221 Followers
75 Following
30 Posts
Software developer with a focus on PHP using Laravel. 
16 years experience, most of which were in telecommunications. Have been in finance since the beginning of 2022. 
Host the North Meets South and Laravel News podcasts, run Laracon AU, which will be returning in 2023 after a three year hiatus.
Bloghttps://dyrynda.com.au
GitHubhttps://github.com/michaeldyrynda
If you "Log in with Twitter" to any websites, get ready for that to stop working. Maybe the sites will send money to Musk, but maybe they won't. You need a Plan B, right now.

🐘 Want to see which of your dependencies have a new (major) release? There’s a Composer command for that!

`composer outdated`
#php

Local Environment Seeders in Laravel | stefanzweifel.dev

Database Seeders in Laravel are a controversial feature. Everyone used them for different things. This post explains how I use them to bring my local app to different states.

Stefan Zweifel

Kinda sad you can’t use enum members as keys in a WeakMap. Gotta use SplObjectStorage which can have garbage collection (or lack thereof) implications.

The latter is not nearly as concise, either.

I've had the idea for a weird kind of Twitter client for years. With Mastodon being all open, I've decided to do the experiment:

What if your Timeline looked like iMessage. A normal timeline confuses me to no end because everything is out of context.

My experiment, Ebou, is a Mastodon client that looks like iMessage. Conversations are grouped by friends and sorted by recent postings.

It is super basic right now, but this already feels much more natural to me 😀

Thanks for having me #LaraconEU Lisbon! I hope everyone had a lot of fun hacking Laravel! Don't forget to Th1nk Lik3 a H4cker to keep your apps secure! 🥷 😈

To learn more about hacking and security, checkout: https://practicallaravelsecurity.com

Practical Laravel Security - Secure Your Laravel Apps

A hands-on practical Laravel Security course that uses interactive hacking exercises to teach you how to keep your applications secure. Because learning security doesn't have to be boring!

Here are some simple rules I follow for authorization logic in my #Laravel apps: assign permissions to roles (not users), assign only roles to users (never permissions), always check permissions (not roles). And the roles/permissions mapping should be setup in code, not managed through a UI.

Oh, and use the fantastic Spatie package, don't hand roll your own logic: https://spatie.be/docs/laravel-permission/v5/introduction

Every time I've worked in an app that strayed from these rules, it's been a mess.

Introduction | laravel-permission

laravel-permission

Looking to pick up a little side consulting/advising/pairing/coaching for Laravel or PHP. I need to take care of an emergency vet bill.

Hit me up if you have anything. It will be nights & weekends, no more than 30 hours probably.

I'm really enjoying the additional types being added to #Laravel. For example, the generics added to factory classes. I can remove so many more "var" docblocks in my tests.

It reduces noise in my tests without sacrificing the helpful static analysis tooling I've come to depend upon.

Just noticed I'm only 4 off from 100 paid subscribers on Laravel Security in Depth. 😲🥰

So if you've been thinking about it, now's a great time? https://larasec.substack.com/blackfriday22 😉

In all seriousness, thank you for the support! It's grown far more than I'd ever imagined!
#laravel #PHP

Laravel Security In Depth

Each month we dive into Laravel Security concepts through code examples, recent updates, interactive challenges, and hacking techniques, covering the essential topics you need to know to keep your apps secure. Click to read Laravel Security In Depth, by Stephen Rees-Carter, a Substack publication with thousands of readers.