Advertisement · 728 × 90

Posts by Dale Hurley

H Craig Blue - Craig Blue

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

1 year ago 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.

1 year ago 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

1 year ago 10 3 1 1

I built my first ASP site using notepad.

1 year ago 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.

1 year ago 1 0 0 0

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

1 year ago 1 0 0 0

Absolutely!

1 year ago 1 0 0 0

Best printer we ever brought is the Epson EcoTank.

1 year ago 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.

1 year ago 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.

1 year ago 0 0 1 0
Advertisement

Then throw in ShadCN-UI…chefs kiss.

1 year ago 1 0 0 0

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

1 year ago 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 💪

1 year ago 18 2 0 0
Post image

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

1 year ago 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 ?

1 year ago 84704 8577 2500 484

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

1 year ago 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.

1 year ago 3 0 0 0
Post image

PHP is trending right now 🫠

1 year ago 36 5 1 0

How did it compare to Forge and Envoyer?

1 year ago 0 0 0 0
Advertisement

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

1 year ago 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);

1 year ago 3 0 1 0

What do you mean by shiny?

1 year ago 1 0 0 0

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

1 year ago 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.

1 year ago 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.

1 year ago 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

1 year ago 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

1 year ago 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

1 year ago 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

1 year ago 2 1 3 0
Advertisement

ShadCN-UI is amazing

1 year ago 4 0 0 0