PHPackages                             phishops/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. phishops/tswink

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

phishops/tswink
===============

Generate typescript classes from Laravel models.

0501PHP

Since Jul 1Pushed 6y agoCompare

[ Source](https://github.com/jakesyl/tswink)[ Packagist](https://packagist.org/packages/phishops/tswink)[ RSS](/packages/phishops-tswink/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

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

[](#pangpondpontswink)

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

```
