You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running vendor/bin/sail artisan model:typer --plurals --api-resources modeltyper return this error:
Exception
Accessor method for parent_id on model App\Modules\ProductCatalog\Models\Category does not exist
at vendor/fumeapp/modeltyper/src/Actions/DetermineAccessorType.php:38
34▕ return$reflectionModel->getMethod($method);
35▕ } catch (Exception $e) {
36▕ }
37▕
➜ 38▕ throw new Exception('Accessor method for '.$mutator.' on model '.$reflectionModel->getName() .' does not exist');
39▕ }
40▕ }
41▕
+21 vendor frames
22 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Which in your case looks like its coming from that NodeTrait so I would have to see whats all in that trait.
When you run the Laravel Model Show command what is the output for this model?
What happened?
When running
vendor/bin/sail artisan model:typer --plurals --api-resources
modeltyper return this error:I'm using NestedSet Package to manage the categories.
And applying the trait on the categories model.
Environment:
laravel: 10
database: postgres
Expected Behavior
The expected behavior is the output of TypeScript interfaces declarations on the console.
Steps To Reproduce
vendor/bin/sail artisan model:typer --plurals --api-resources
The text was updated successfully, but these errors were encountered: