Skip to content

Commit

Permalink
Added precautions
Browse files Browse the repository at this point in the history
  • Loading branch information
wovosoft committed Sep 1, 2023
1 parent f81505f commit 58e1f1a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

Transforms Laravel Models to Typescript Interfaces/Types

## Precautions

This packages instantiates Models to retrieve it's casts,
attributes, relations in some cases. So, if your models have
some sensitive actions inside __constructor method, please
be aware of using this package.

## Installation

Via Composer
Expand Down Expand Up @@ -85,7 +92,6 @@ otherwise, it will generate value of
`config('laravel-typescript.custom_attributes.fallback_return_type')` type for the related
property.


```php
use \Illuminate\Database\Eloquent\Model;
use \Illuminate\Database\Eloquent\Casts\Attribute;
Expand Down

0 comments on commit 58e1f1a

Please sign in to comment.