Pinned Tweet
Successfully passed the Laravel Exam, so am a Certified @Laravel Developer. Would hope so after using it since v3 😂
exam.laravelcert.com/is/alan… – at Wallsend, England
1
2
🫥 Alan Wynn ツ retweeted
NativePHP isn't a hobby project or a toy. It's serious.
Let me tell you why NativePHP exists and why it matters.
Get a warm cup of cocoa, kids, it's story time 👨👩👧👦
🫥 Alan Wynn ツ retweeted
NEW VIDEO! Let’s See If I Can Get Fired - AMD $5,000 Ultimate Tech Upgrade
youtu.be/oTYwd9OjFRk
Enter the AMD giveaway for TWO ROG Allys below!
gleam.io/d3Xsi/amd-asus-rog-…
#sponsoredby @AMD
🫥 Alan Wynn ツ retweeted
If you're using Laravel Sanctum and you want to use your own API from a backend service on the same parent domain, you can forward the encrypted cookies and set the referer header. Sanctum will authenticate as the requesting user, all without any tokens👌
🫥 Alan Wynn ツ retweeted
🐘$c++ equals ‘d’ 🐘
3v4l.org/e1e1r4
#php
🫥 Alan Wynn ツ retweeted
🥳 Debugging can be fun too!
Hope you’ll enjoy this nice little ray()->confetti() call that we put in the latest version of myray.app
🫥 Alan Wynn ツ retweeted
You can clean up a lot of code by moving the common props to parent component and using @aware directive which allows you to access parent component data.
🫥 Alan Wynn ツ retweeted
Same logic applies to str_* functions as well 🤯
Replying to @aschmelyun
There is a clue. Split in_array to 2 pieces from underscore. Array word will be second part. Same as the $array value comes on second parameter.
🫥 Alan Wynn ツ retweeted
me: have been working with PHP almost daily for 10 years
also me: googles in_array again to find out if the value or the array is first
🫥 Alan Wynn ツ retweeted
⚡ 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…
🫥 Alan Wynn ツ retweeted
New analysis of TikTok’s source code shows app obtaining access to an excessive, alarming, and dangerous amount of sensitive data.
“the only reason this information has been gathered is for data harvesting”
gizmodo.com.au/2022/07/tikto…
🫥 Alan Wynn ツ retweeted
Great points in DM from @jessethanley:
1) Nobody should have casual access to production infrastructure. CTO, CEO or similar should have keys but not all sr engineers.
2) In an emergency, sure, temporarily authorize access for fixes
Anyone disagree and in the mood for a fight?
🫥 Alan Wynn ツ retweeted
Dogshit - Very poor quality
Bullshit - Not true
Horseshit - Nonsense
Apeshit - Rambunctious
Batshit - Insane
This is an excellent feature of English that we should continue building upon.
🫥 Alan Wynn ツ retweeted
TIL:
In Laravel Livewire, it's better sometimes to use wire.entangle(), instead of the entangle directive, avoids weird issues like "invalid or unexpected token."
Thanks, @samuelstancl, for posting that gem. 🔥
🫥 Alan Wynn ツ retweeted
🔥 #Laravel Tip: Laravel provides excellent authorization features in the form of gates and policies, but sometimes, a simple role-based approach works the best. While many packages exist for this, it's trivial to create your own system.
🫥 Alan Wynn ツ retweeted
With the newest version of Git 2.37.0, you can run just "git push" to push new branches. No more "--set-upstream origin". Enable with:
git config --global --add --bool push.autoSetupRemote true
🫥 Alan Wynn ツ retweeted
🍋 Did it just fresh in here?
⚔️ It did for Blade.
🔄 RE-fresh that is...
In v0.3.0 of the laravel/vite-plugin, you now have "Blade hot refreshing" out of the box.
To get the latest version, you will need to run:
npm install -D [email protected]































