Dale Hurley
dalehurley.bsky.social
Dale Hurley
@dalehurley.bsky.social
Passionate coder with 30 years of experience. Spent 20 years mastering PHP, and for the past 8 years, I’ve been loving Laravel and React. Australia 🇦🇺🦘🐨
@hcraigblue.bsky.social You do not attack my children - craig.blue
H Craig Blue - Craig Blue
craig.blue
February 20, 2025 at 10:56 AM
Reposted by Dale Hurley
Thinking of PHP as outdated? 🤔 Think again!

Here's a reminder: "Don't say PHP is dead without trying Modern PHP." 💡
#PHP #Programming
December 25, 2024 at 4:00 PM
Reposted by Dale Hurley
This is an ~immediate~ bookmark for me!

I've under-utilized PHP Attributes mostly because I couldn't be bothered to go look up the full list of ones that Laravel offers, so expect to see them more frequently in my code thanks to @christophrumpel.bsky.social 💪
December 11, 2024 at 3:44 PM
Wow @anthropic.com, I can suggest a great AI to write something more interesting.
December 12, 2024 at 10:22 AM
Reposted by Dale Hurley
If we all find 100 posts to like every day, engagement and good will on @bsky.app grows exponentially.

Is it worth a few minutes to make the platform stronger ?
December 10, 2024 at 2:11 PM
Reposted by Dale Hurley
PHP is trending right now 🫠
December 9, 2024 at 4:03 PM
Laravel custom commands allow you to efficiently create DSLs. For example I want to use Views for my OpenAI prompts. I made a php artisan make:gpt-prompt and it creates a folder in my views with system.blade.php, user.blade.php and schema.json. Now I can call OpenAI::compose(“nameOfPrompt” $data);
December 5, 2024 at 12:29 PM
Laravel Contracts are awesome:

✅ Explicit dependencies
✅ Better testability
✅ Framework-agnostic code
✅ Clear class responsibilities

Your code, your rules! 🚀
#Laravel #PHP
December 4, 2024 at 7:48 PM
Reposted by Dale Hurley
Inspired by @justinjackson.ca’s Laravel starter pack, I’ve thrown together one of Australian Laravel folks!

Keep in touch with some local people sharing your affinity for the Laravel framework, between Laracons.

Missed people? Let me know!

go.bsky.app/NNFmHx1
December 3, 2024 at 10:36 AM
Want to filter your Eloquent queries without if statements? Use When():

#Laravel #PHP
December 2, 2024 at 10:40 AM
Did you know? Laravel's dependency injection container is so powerful you can bind interfaces to concrete classes, allowing you to swap entire implementations without changing any code! Just update your binding in ServiceProvider:

app()->bind(PaymentInterface::class, StripePayment::class);
#Laravel
December 1, 2024 at 8:00 PM
3 reasons I love working with Laravel:

1. `php artisan make:model Entity --all` - instant model, factory, migration, seeder & controller 🚀

2. Eloquent ORM - clean and reusable database models

3. Queue & jobs handling that just works
#Laravel #PHP
November 29, 2024 at 9:12 PM
Passing a callable to function makes your code so much reusable. #laravel #php #dependancyinjection


$varA = “a”;

function inject($callback) {
$varB = “b”;
($callback)($varB);
}

inject(function ($varC) use ($varA) {
echo $varA . $varC;
});

// ab
November 28, 2024 at 6:55 AM
I don’t always I feel like I need a new Lambo, but when I do I run laravel new
November 27, 2024 at 11:04 PM
Reposted by Dale Hurley
🔒 Just learned #PHP versions now get 4 years support (2yr active + 2yr security), up from 3! PHP 8.4 will be supported until end of 2028. Love that all versions now end on Dec 31st. Easy to remember!
November 27, 2024 at 9:38 AM
Every time I need to do something with Laravel, I am always blown away by how good of a framework it is.
November 27, 2024 at 9:52 AM