@hcraigblue.bsky.social You do not attack my children - craig.blue
@hcraigblue.bsky.social You do not attack my children - craig.blue
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.
Thinking of PHP as outdated? π€ Think again!
Here's a reminder: "Don't say PHP is dead without trying Modern PHP." π‘
#PHP #Programming
I built my first ASP site using notepad.
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.
Iβm excited for updates to copilot. Iβm currently using Cursor and wish copilot could be just as good.
Absolutely!
Best printer we ever brought is the Epson EcoTank.
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.
Google doesnβt like that my business name is a URL. I get emails from Google with Removed URL Pty Ltd invoice.
Then throw in ShadCN-UIβ¦chefs kiss.
It is not a zero sum game. I prefer here but still use Twitter.
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 πͺ
Wow @anthropic.com, I can suggest a great AI to write something more interesting.
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 ?
@joe.codes wakes up the next day to 20 new bugs.
JavaScript is currently making the mistakes PHP made 20 years ago. We had CodeIgniter and then Laravel which massively pushed PHP forward.
PHP is trending right now π«
How did it compare to Forge and Envoyer?
I should add the Static calls the three views and returns them as HTML entities escaped strings.
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);
What do you mean by shiny?
Of course it was. He made packages for OpenAI for Laravel.
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.
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.
Laravel Contracts are awesome:
β
Explicit dependencies
β
Better testability
β
Framework-agnostic code
β
Clear class responsibilities
Your code, your rules! π
#Laravel #PHP
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
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
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
ShadCN-UI is amazing