Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

abdulkhan's avatar

abdulkhan wrote a comment+100 XP

3mos ago

Thanks for putting up some great examples.

abdulkhan's avatar

abdulkhan liked a comment+100 XP

3mos ago

Man you are an inspiration, I really appreciate your contributions to the community, I hope someday I'll be like you, keep it up ❤️

abdulkhan's avatar

abdulkhan wrote a comment+100 XP

3mos ago

I tried it, but it doesn't generate the types except for the User model. All my models are in a group by folder.

Settings Sales Catalog

not using the fillable attribute.

abdulkhan's avatar

abdulkhan liked a comment+100 XP

5mos ago

Might be worth a mention, that if you want immutable dates across the entire project, regardless of model casting, even from now(), today() and other helper functions without calling ->toImmutable(), you can add this in AppServiceProvider

use Carbon\CarbonImmutable;
use Illuminate\Support\Facades\Date;

Date::use(CarbonImmutable::class);