laravel-shift / blueprint

A code generation tool for Laravel developers.
MIT License
2.9k stars 276 forks source link

Laravel 11 Compatibility #679

Closed qhoirulanwar closed 8 months ago

qhoirulanwar commented 8 months ago

Issue:

screenshot-1710331050381

jarwonozt commented 8 months ago

I also experienced something similar when I upgrade Laravel 11

manojo123 commented 8 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 8 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 8 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.