Andy Hinkle @andyhinkle.com · Nov 14

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.

0 likes 1 replies

?

Replies

Travis Northcutt · Nov 14

seems like this works: `public function __construct(public $startDate = new Carbon('2024-01-01')) {}`