laravel-shift / blueprint

A code generation tool for Laravel developers.
MIT License
2.82k stars 270 forks source link

Laravel 11 Compatibility #679

Closed qhoirulanwar closed 6 months ago

qhoirulanwar commented 6 months ago

Issue:

screenshot-1710331050381

jarwonozt commented 6 months ago

I also experienced something similar when I upgrade Laravel 11

manojo123 commented 6 months ago

Not compatible yet, lets wait for next commit. So far my workaround was to fork the project and change the dependencies on composer.json

jasonmccreary commented 6 months ago

Blueprint should be compatible with Laravel 11 from a dependency perspective. However, it will not generate code for Laravel 11 (i.e. Models with the casts method).

tl;dr; Try dev-master.

jasonmccreary commented 6 months ago

Just tagged v2.10. This should include Laravel 11 compatibility.

A reminder, it will not generate models with the new casts method. They will still use the $casts property, which is compatible with both Laravel 10 and Laravel 11. I will generate the new method when support for Laravel 10 is dropped later this month.