laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
176 stars 7 forks source link

[Feature Request]: New module - Laravel JSON API #501

Open maicol07 opened 2 years ago

maicol07 commented 2 years ago

Feature Description

Provide support for Laravel Json Api package: https://laraveljsonapi.io

adelf commented 2 years ago

Hi, Maicol.

What kind of support? generating schemas based on model fields? Or?

maicol07 commented 2 years ago

Yes, basically the code generation, like the artisan commands (I'd like to use that primarly for packages that can't call artisan commands).

Example: https://laraveljsonapi.io/docs/1.0/schemas/#defining-schemas (command: php artisan jsonapi:schema posts --server=v1)

maicol07 commented 2 years ago

@adelf this page shows the full list of generators included with the package: https://laraveljsonapi.io/docs/1.0/digging-deeper/artisan.html#generators

maicol07 commented 2 years ago

@adelf any news about this one?

adelf commented 2 years ago

I won't implement it natively for now. But I'm working on ide.json changes and you can add these generations there byself.

maicol07 commented 2 years ago

@adelf any news about this?

adelf commented 2 years ago

It's implemented but isn't documented yet. Working on it.