flugg / laravel-responder

A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.
MIT License
861 stars 86 forks source link

Wrong Model Namespace on executing the transformer command #194

Open SachinBahukhandi opened 1 year ago

SachinBahukhandi commented 1 year ago

Hi, Upon generating the Transformer using the command:

php artisan make:transformer UserTransformer

I could see in the documentation that:

assume the models live directly in the app folder

But Going as per Laravel's documentation:

https://laravel.com/docs/8.x/eloquent#generating-model-classes

The directory is: app\Models.

Thanks.