This is a new major release with minor breaking changes.
Support begins from Laravel version 11.33.0 and onwards due to changes in the Laravel framework.
In order to support php 8.4, this library requires nesbot/carbon >= 3.5
We have introduced new configuration options, to ensure your configuration file includes these new options, delete your current config/modeltyper.php
file, then publish the new config file using the following command.
php artisan vendor:publish --provider="FumeApp\ModelTyper\ModelTyperServiceProvider" --tag=config
use --plurals --api-resources
instead, or set them in config
ModelTyper now only considers models that extends Eloquent\Model
model:typer-show
command was removed and is no longer available.
FumeApp\ModelTyper\ModelInterface
and FumeApp\ModelTyper\TypescriptInterface
where removed and are no longer available.