PHP code example of nolanos / laravel-model-typescript-transfomer

1. Go to this page and download the library: Download nolanos/laravel-model-typescript-transfomer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nolanos / laravel-model-typescript-transfomer example snippets


    'collectors' => [
        // ...
        Nolanos\LaravelModelTypescriptTransformer\ModelTypeScriptCollector::class,
    ],
    'transformers' => [
        // Etc....
        Nolanos\LaravelModelTypescriptTransformer\ModelTransformer::class,
    ],

class User extends Model
{
    protected $hidden = ['password'];
}
bash
php artisan typescript:generate