reliese / laravel

Reliese Laravel Model Generator
MIT License
1.49k stars 317 forks source link

Not generating views for Postgres #230

Open vicenterusso opened 2 years ago

vicenterusso commented 2 years ago

When I run php artisan code:models --table=mytable_view I get the following error:

Table [mytable_view] does not belong to schema [my-db-name]

I'm using default public schema from Postgres

pablofuenzalidadf commented 2 years ago

does your table include an uppercase by any chance? I had a similar problem, solved by adding escaped quotation marks php artisan krlove:generate:model SpkUserOu --table-name \"spk_userOu\"