A template for above powerful technique
npm install
composer install
Special command php artisan ide-helper:models --nowrite
require you connected database
php artisan ide-helper:generate
php artisan ide-helper:meta
php artisan ide-helper:models --nowrite
A lint command for check issue typescript vue files. This command is powerful but used too much resource pc then I not add it to lint-staged and if add to lint-staged it not work correctly (Currently I don't know)
npm run lint:vue
Recommend actions for you when a case occurred
You should fresh ide model helper file
php artisan ide-helper:models --nowrite
Use the spatie/laravel-typescript-transformer
to transform a php type to typescript
Firstly you Secondly you should
add @typescript
phpdoc to php type
/** @typescript */
class FetchedCardType
{
//
}
Secondly you should run special command to generate it to typescript
php artisan typescript:transform