Z3d0X / filament-fabricator

Block-Based Page Builder Skeleton for your Filament Apps
https://filamentphp.com/plugins/fabricator
MIT License
251 stars 47 forks source link

It block all artisan commands in docker #122

Open EsiNakesy opened 6 months ago

EsiNakesy commented 6 months ago

When I try to use it inside Docker and run Artisan commands, it always throws this exception: `SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "pages" does not exist LINE 1: select from "pages" ^ (Connection: pgsql, SQL: select from "pages")

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:822 818▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 819▕ ); 820▕ } 821▕ ➜ 822▕ throw new QueryException( 823▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 824▕ ); 825▕ } 826▕ }

1 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Z3d0X\FilamentFabricator\FilamentFabricatorServiceProvider)) +12 vendor frames` this error happened because of the codes inside bootingPackage()

EsiNakesy commented 6 months ago

it seems there is no support for this package anymore :(

ksimenic commented 5 months ago

@EsiNakesy did you run the migrations? It should be done via php artisan filament-fabricator:install if you followed the documentation properly.

EsiNakesy commented 5 months ago

@ksimenic it's completly diffrent topic, after you installed fabricator, if you try to move it from dev to prod since it considers that the page table is already exist you can not run migration or any other artisan command, so when docker try to build and run the services you will get an error that I mentioned. To replicate the issue:

Z3d0X commented 4 months ago

Could you share complete stacktrace / which line in FilamentFabricatorServiceProvider is throwing the error?

When I try to use it inside Docker and run Artisan commands, it always throws this exception: `SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "pages" does not exist LINE 1: select from "pages" ^ (Connection: pgsql, SQL: select from "pages")

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:822 818▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 819▕ ); 820▕ } 821▕ ➜ 822▕ throw new QueryException( 823▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 824▕ ); 825▕ } 826▕ }

1 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Z3d0X\FilamentFabricator\FilamentFabricatorServiceProvider)) +12 vendor frames` this error happened because of the codes inside bootingPackage()