Advertisement Β· 728 Γ— 90

Posts by Andy Hinkle

Preview
Laravel Worldwide Meetup Join the official Laravel meetup in the cloud. Learn from familiar faces and new speakers while chatting with fellow Laravel devs.

August Laravel Worldwide Meetup! Join @andyhinkle.com for Keeping Laravel Elegant When Business Gets Messy - tips for writing clean, maintainable Laravel code when deadlines are tight.

πŸ“… Aug 26th, 12PM EDT
meetup.laravel.com

7 months ago 2 3 0 0
Preview
The State of Laravel Survey This survey is an attempt to gain insight into the representation of the diverse technologies and behaviors of this outstanding community.

The State Of Laravel 2025 survey has started!

You can now participate to identify how the ecosystem changed over the past 12 months!

Please RT for reach ❀️

stateoflaravel.com/participate?...

8 months ago 22 26 4 0

My wife and I have been looking for an excuse to go back to NYC just to have those tacos again. Honestly, it’s a good enough excuse on its own.

8 months ago 1 0 0 0

Added this to my prompt as a joke - now it’s standard:
β€œWrite this like Taylor Otwell would. Clean, expressive, elegant - no fluff.”

8 months ago 3 0 0 0

Just upgraded a site from Laravel 11 to 12 via a Dependabot PR β€” no code changes, tests all pass, zero issues, smooth as butter. Love these kinds of upgrades.

11 months ago 3 0 0 0
Post image

RIP Around.co πŸ’€ (EoL) Our daily standups always wrapped up with a 5-minute Bomberman battle between the devsβ€”pure chaos and competition.

Anyone have a go-to breakout game with their team as the day starts?

1 year ago 3 0 1 0
Post image

Found this gem while rescuing an app today

1 year ago 7 0 0 1
➜  laravel php artisan stub:publish

 β”Œ Which stubs would you like to publish? ──────────────────────┐
 β”‚ migration.create.stub                                        β”‚
 β”‚ migration.stub                                               β”‚
 β”‚ migration.update.stub                                        β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

   INFO  Stubs published successfully.

➜ laravel php artisan stub:publish β”Œ Which stubs would you like to publish? ──────────────────────┐ β”‚ migration.create.stub β”‚ β”‚ migration.stub β”‚ β”‚ migration.update.stub β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ INFO Stubs published successfully.

Ever used the `stub:publish` command when you only needed a few stubs but ended up publishing all ~50 customizable ones?

I’m working on a PR to address this by adding a selection menu so you can choose exactly which stubs to publish. Would love to hear any feedback!

github.com/laravel/fram...

1 year ago 7 0 0 0
Advertisement

a man of his word.

1 year ago 2 0 0 0

Sameβ€” apparently, 2 meters is the height for walking into every spider web on the planet.

1 year ago 1 0 0 0

Risky click. haha

1 year ago 2 0 1 0

Whew! Congrats dude!

1 year ago 1 0 0 0

Now, these are the takes I’m here for!

1 year ago 1 0 1 0
Post image

That’s my kidβ€”already making solid life choices.

1 year ago 20 0 2 0

Same! ASG-89 Shotgun has been OP for zombies.

1 year ago 0 0 0 0

Mostest Overly Technical Sewing Engineering

1 year ago 2 0 0 0

Linkin Park's new album is such a banger. Feels like I'm in high school again.

1 year ago 3 0 0 0

I love this "TIL" series on your site. Great idea. Keep it up man!

1 year ago 1 0 1 0
Advertisement
Preview
Instantiating a class via constructor property promotion

TIL you can instantiate a class via constructor property promotion in PHP: travisnorthcutt.com/til/php-cons...

1 year ago 4 1 3 0

Ah, I was type hinting with public Carbon ..., which reset the date. Removing the type hint fixed the issue. Interesting! Thanks so much for your helpβ€”really appreciate it!

1 year ago 1 0 1 0
Post image

Hmm, shoot - gives me today, equivalent to writing `new Carbon()` instead of the passed date. Super nice find though!

1 year ago 0 0 1 0

Whoa! Nice find! Is it meant to be used this way? haha

1 year ago 1 0 0 0
Post image

Haha yeah, you go it! Or perhaps something like an attribute on the constructor. πŸ€”

Still smells a bit funny haha but it's nice that I don't have to type it again.

1 year ago 0 0 1 0
<?php

...

// Current
public Carbon startDate;

public function __construct()
{
	$this->startDate = new Carbon('2024-01-01');
}

...

// Instead, Would be nice:
public Carbon startDate = new Carbon('2024-01-01');

// or

#[InstantiateOnConstruct]
public Carbon startDate = new Carbon('2024-01-01');

<?php ... // Current public Carbon startDate; public function __construct() { $this->startDate = new Carbon('2024-01-01'); } ... // Instead, Would be nice: public Carbon startDate = new Carbon('2024-01-01'); // or #[InstantiateOnConstruct] public Carbon startDate = new Carbon('2024-01-01');

I think about this often πŸ€” – it’d be great to see something like this in a future version of PHPβ€”instantiation on property declaration. I get *why* we do this, but the number of constructors I could clean up... 🧹

1 year ago 2 0 1 0