Lomkit / laravel-rest-api

Generate Api in seconds
https://laravel-rest-api.lomkit.com/
MIT License
297 stars 18 forks source link

problem with MorphClass #112

Closed ThanhSonITNIC closed 3 months ago

ThanhSonITNIC commented 3 months ago

Description

I have defined morph class Relation::enforceMorphMap in AppServiceProvider When create resource via relations (https://laravel-rest-api.lomkit.com/resources/relationships#morph-many), after created, morphable_type not same as defined in AppServiceProvider, instead it store as Model::class

GautierDele commented 3 months ago

Could you give me your app service provider command please ?