Dale Hurley's Avatar

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 πŸ‡¦πŸ‡ΊπŸ¦˜πŸ¨

46 Followers  |  225 Following  |  37 Posts  |  Joined: 19.11.2024  |  1.7197

Latest posts by dalehurley.bsky.social on Bluesky

H Craig Blue - Craig Blue

@hcraigblue.bsky.social You do not attack my children - craig.blue

20.02.2025 10:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Switched to using Envoyer for Blue/Green zero downtime deployments, new jobs fail on prod, Forge uses an absolute path for queues. Forge was pointed to the old codebase. Hours wasted trying to find the bug in the codebase that wasn’t there.

02.01.2025 22:15 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Thinking of PHP as outdated? πŸ€” Think again!

Here's a reminder: "Don't say PHP is dead without trying Modern PHP." πŸ’‘
#PHP #Programming

25.12.2024 16:00 β€” πŸ‘ 10    πŸ” 3    πŸ’¬ 1    πŸ“Œ 1

I built my first ASP site using notepad.

19.12.2024 06:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It is a change in priorities. At 40 I have kids, mortgage etc. In my 20’s my only responsibility was myself. However I would argue today I am a lot productive by knowing where to focus and what fires to ignore.

19.12.2024 06:10 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I’m excited for updates to copilot. I’m currently using Cursor and wish copilot could be just as good.

18.12.2024 07:24 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Absolutely!

15.12.2024 18:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Best printer we ever brought is the Epson EcoTank.

14.12.2024 23:46 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

None ATM, maybe if I ever get audited I might have to explain it to the auditor, but given my business number is there, I am sure they will be fine.

14.12.2024 23:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Google doesn’t like that my business name is a URL. I get emails from Google with Removed URL Pty Ltd invoice.

14.12.2024 23:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Then throw in ShadCN-UI…chefs kiss.

14.12.2024 23:12 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It is not a zero sum game. I prefer here but still use Twitter.

14.12.2024 23:11 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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 πŸ’ͺ

11.12.2024 15:44 β€” πŸ‘ 18    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Post image

Wow @anthropic.com, I can suggest a great AI to write something more interesting.

12.12.2024 10:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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 ?

10.12.2024 14:11 β€” πŸ‘ 84809    πŸ” 8589    πŸ’¬ 2504    πŸ“Œ 484

@joe.codes wakes up the next day to 20 new bugs.

11.12.2024 07:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

JavaScript is currently making the mistakes PHP made 20 years ago. We had CodeIgniter and then Laravel which massively pushed PHP forward.

10.12.2024 09:35 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

PHP is trending right now 🫠

09.12.2024 16:03 β€” πŸ‘ 36    πŸ” 5    πŸ’¬ 1    πŸ“Œ 0

How did it compare to Forge and Envoyer?

09.12.2024 06:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I should add the Static calls the three views and returns them as HTML entities escaped strings.

05.12.2024 12:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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);

05.12.2024 12:29 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

What do you mean by shiny?

05.12.2024 12:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Of course it was. He made packages for OpenAI for Laravel.

05.12.2024 06:21 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

In more complicated projects beyond simple CRUD, data comes from multiple sources, some trusted, some not. Just because you can drive drunk doesn’t mean you should.

04.12.2024 23:08 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Yes you can use request validation, but you might also have data coming from other sources eg APIs or other models (denormalisation). When you are working in teams, it helps to stop changes have unintended consequences.

04.12.2024 20:08 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Laravel Contracts are awesome:

βœ… Explicit dependencies
βœ… Better testability
βœ… Framework-agnostic code
βœ… Clear class responsibilities

Your code, your rules! πŸš€
#Laravel #PHP

04.12.2024 19:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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

03.12.2024 10:36 β€” πŸ‘ 41    πŸ” 12    πŸ’¬ 3    πŸ“Œ 1
User::query()
    ->when($request->search, fn($q) => 
        $q->where('name', 'like', "%{$request->search}%")
    )
    ->when($request->active, fn($q) => 
        $q->where('active', true)
    )
    ->get();

User::query() ->when($request->search, fn($q) => $q->where('name', 'like', "%{$request->search}%") ) ->when($request->active, fn($q) => $q->where('active', true) ) ->get();

Want to filter your Eloquent queries without if statements? Use When():

#Laravel #PHP

02.12.2024 10:40 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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

01.12.2024 19:59 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 3    πŸ“Œ 0

ShadCN-UI is amazing

01.12.2024 08:02 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@dalehurley is following 20 prominent accounts