Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Typescriptable Laravel Laravel Package

kiwilan/typescriptable-laravel

View on GitHub
Deep Wiki
Context7
v3.1.06

Support Laravel 12 by #96

v3.1.05
v3.1.03
  • Fix missing accessors with Eloquent parser engine
v3.1.02
  • Fix isModel() detection, add Illuminate\Foundation\Auth\User for models with Authenticatable trait.
  • Add snakeCaseName property to relations to get count with snake case name.
v3.1.01
  • Fix RouteListCommand with JSON format
  • Fix } for Routes types
v3.1.0
  • Remove options from typescriptable:eloquent, typescriptable:settings and typescriptable:routes because all parameters can be set from config
  • Add eloquent:list to show all Eloquent models
  • Routes are now generated from route:list command
  • Add more tests for routes and settings
  • Add config for routes
    • routes.print_list to print routes.ts file
    • routes.add_to_window to add routes into window to get it from window.Routes (SSR check), routes.print_list must be true
    • routes.use_path to replace routes types names to routes paths
v3.0.0

Refactoring with Artisan command show:model

  • typescriptable:models command is now typescriptable:eloquent command (old command still works)
  • Add more tests to valid Eloquent parsing
  • Add mongodb support
  • Add new option into config to handle engine with two options artisan or parser
    • artisan will parse models with Artisan command show:model
    • parser 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

  • Change models entry into config to eloquent
- 'models => [
+ 'eloquent' => [
  // ...
],







v2.0.07
  • Fix EloquentPhp::class for \ duplicates
  • Fix EloquentCast::class with UnitEnum and public constants into enum classes
v2.0.06

Fix window.Routes from routes.ts auto-generated file

v2.0.05

Fix version

v2.0.04

Add filter on items() to keep only class with inheritance from Model class

v2.0.03

Routes generation fixes with ESLint (typo, multiple params).

v2.0.02

Fix window.Routes = Routes for routes.ts

v2.0.01

Add appUrl to routes.ts.

v2.0.0

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















v1.12.03

Readd doctrine/dbal for Laravel < 11.

v1.12.02

Drop doctrine/dbal to require-dev and update dependencies.

v1.12.0

Add support for Laravel 11

v1.11.40

Hotfix for relation parsing if multiline.

v1.11.36
  • DateTime type is now string for Typescript

For issue #46

v1.11.35
  • Fix
v1.11.34
  • Hotfix for v1.11.33
v1.11.33
  • Add config option for database prefix DB_PREFIX (can be used into database.php file)

Issue #44

v1.11.32
  • Fix EloquentRelation prefix morph relations
v1.11.31
  • Replace Schema::getAllTables() with Schema::getConnection()->getDoctrineSchemaManager()->listTableNames()
v1.11.30
  • Add pivot parser with EloquentRelation parser to add pivot property to original model.
v1.11.21
  • Fix EloquentRelation warning if type is not exist
v1.11.14
  • Fix [Bug]: linting problem #36
v1.11.13
  • Fixes
v1.11.12
  • Models relationships fixes
v1.11.11
  • Typescript generated fixed
v1.11.10
  • Add header to .d.ts to skip Typescript errors
1.11.03
  • Fix Typescriptable::settings return type to ?SettingType
  • Table will now check if table exists before trying to scan it
  • ClassItem fix config skip model
1.11.02
  • Fix mixed ts type to any
  • Fix SettingType allow path to not exists
1.11.01
  • Add EloquentRelation fallback for type and typeTs
1.5.20
  • Add advanced array support to the for PHPDoc tag.
1.11.0
  • fix version
1.5.10
  • SettingType fix extends param if null
1.5.0
  • Add partial support for spatie/laravel-settings package
1.4.0
  • add support for Morph relations
1.3.0
  • Fix Illuminate\Database\Eloquent\Casts\Attribute bug
1.2.0
  • Add tests
  • Multiple database support (sqlserver soon) for issue #4
1.1.13
  • Fix same name routes
1.1.12
  • Rename Route to App.Route
1.1.11
  • Fix routes when method is not exist
1.1.10
  • Fix crash on Laravel 10
1.1.001
  • Now compatible with Laravel 10
1.1.0
  • Remove inertia command
  • Inertia types are now generated by NPM associated package
  • TypedLink is now Route
1.0.0
  • Refactoring of typescriptable:models command
  • Add typescriptable:routes command to generate route types
  • Add typescriptable:inertia command to generate Inertia types
  • Add typescriptable command to generate current commands with options
  • All commands options are now into package config
  • Publish [@kiwilan](https://github.com/kiwilan)/typescriptable-laravel with some features for Inertia and typed routes usage
0.2.21
  • remove string[] for flash, only object type
0.2.20
  • Add flash into InertiaPage
0.2.1
  • Fix namespace
0.2.0
  • Add new command typescriptable:ziggy to add Laravel routes types and Inertia extra types (for usePage and global methods in Vue components)
0.1.12
  • Improve pagination
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle