dev-master
9999999-devGenerate typescript classes from Laravel models.
MIT
The Requires
Wallogit.com
2017 © Pedro Peláez
Generate typescript classes from Laravel models.
Generate typescript classes from Laravel models., (*1)
Run composer require pangpondpon/tswink and composer require doctrine/dbal, (*2)
Note: doctrine/dbal is needed for read table structure to create typescript class files., (*3)
If you're using Laravel 5.4 or below, add this to providers array inside config/app.php, (*4)
TsWink\TswinkServiceProvider::class,
Publish the config using php artisan vendor:publish and select TsWink\TswinkServiceProvider., (*5)
Change the config to suite your project, (*6)
<?php
return [
// Destination of typescript classes
'ts_classes_destination' => 'resources/assets/src/models',
];
Run this artisan command, (*7)
php artisan tswink:generate
The file will be in your selected directory in config file., (*8)
, (*9)
Generate typescript classes from Laravel models.
MIT