PHPackages                             pangpondpon/tswink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pangpondpon/tswink

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pangpondpon/tswink
==================

Generate typescript classes from Laravel models.

68708PHP

Since Sep 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/s-patompong/tswink)[ Packagist](https://packagist.org/packages/pangpondpon/tswink)[ RSS](/packages/pangpondpon-tswink/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

TS Wink
=======

[](#ts-wink)

Generate typescript classes from Laravel models.

Installation
------------

[](#installation)

Run `composer require pangpondpon/tswink` and `composer require doctrine/dbal`

Note: `doctrine/dbal` is needed for read table structure to create typescript class files.

If you're using Laravel 5.4 or below, add this to `providers` array inside config/app.php

```
TsWink\TswinkServiceProvider::class,

```

Publish the config using `php artisan vendor:publish` and select `TsWink\TswinkServiceProvider`.

Change the config to suite your project

```
