kiwilan/typescriptable-laravel
Support Laravel 12 by #96
mongodb/laravel-mongodb to v5.x.xparser engineisModel() detection, add Illuminate\Foundation\Auth\User for models with Authenticatable trait.snakeCaseName property to relations to get count with snake case name.RouteListCommand with JSON format} for Routes typestypescriptable:eloquent, typescriptable:settings and typescriptable:routes because all parameters can be set from configeloquent:list to show all Eloquent modelsroute:list commandroutes.print_list to print routes.ts fileroutes.add_to_window to add routes into window to get it from window.Routes (SSR check), routes.print_list must be trueroutes.use_path to replace routes types names to routes pathsRefactoring with Artisan command show:model
typescriptable:models command is now typescriptable:eloquent command (old command still works)artisan or parser
artisan will parse models with Artisan command show:modelparser will parse models with internal engine'engine' => [
/**
* `artisan` will use the `php artisan model:show` command to parse the models.
* `parser` will use internal engine to parse the models.
*/
'eloquent' => 'artisan', // artisan / parser
],
BREAKING CHANGES
models entry into config to eloquent- 'models => [
+ 'eloquent' => [
// ...
],
EloquentPhp::class for \ duplicatesEloquentCast::class with UnitEnum and public constants into enum classesFix window.Routes from routes.ts auto-generated file
Fix version
Add filter on items() to keep only class with inheritance from Model class
Routes generation fixes with ESLint (typo, multiple params).
Fix window.Routes = Routes for routes.ts
Add appUrl to routes.ts.
Drop Laravel 9 and Laravel 10 and PHP 8.1 support (Laravel 11 support only PHP 8.2+).
Laravel is no longer dependent on the Doctrine DBAL and registering custom Doctrines types is no longer necessary for the proper creation and alteration of various column types that previously required custom types. From Laravel News
To install package with old versions of Laravel, use the following command:
composer require kiwilan/typescriptable-laravel:1.12.03
Readd doctrine/dbal for Laravel < 11.
Drop doctrine/dbal to require-dev and update dependencies.
Add support for Laravel 11
Hotfix for relation parsing if multiline.
DateTime type is now string for TypescriptFor issue #46
v1.11.33DB_PREFIX (can be used into database.php file)Issue #44
Schema::getAllTables() with Schema::getConnection()->getDoctrineSchemaManager()->listTableNames()pivot parser with EloquentRelation parser to add pivot property to original model.EloquentRelation warning if type is not exist[Bug]: linting problem #36.d.ts to skip Typescript errorsTypescriptable::settings return type to ?SettingTypeTable will now check if table exists before trying to scan itClassItem fix config skip modelmixed ts type to anySettingType allow path to not existsEloquentRelation fallback for type and typeTsSettingType fix extends param if nullspatie/laravel-settings packageMorph relationsIlluminate\Database\Eloquent\Casts\Attribute bugsqlserver soon) for issue #4inertia commandTypedLink is now Routetypescriptable:models commandtypescriptable:routes command to generate route typestypescriptable:inertia command to generate Inertia typestypescriptable command to generate current commands with options[@kiwilan](https://github.com/kiwilan)/typescriptable-laravel with some features for Inertia and typed routes usagestring[] for flash, only object typeflash into InertiaPagetypescriptable:ziggy to add Laravel routes types and Inertia extra types (for usePage and global methods in Vue components)How can I help you explore Laravel packages today?