-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install #136
Comments
forgot to add Application Name ......................................................................... Laravel Cache ............................................................................................ Drivers .......................................................................................... Im on sail |
The same issue happened. |
Same problem here, just tried to install on a fresh Laravel 9.3 but seems something is off because it tries to read the table before running the migration. |
The fast solution waiting for a fix in the package is to set PDO as silent before migrating, after you can rollback to the default ERROR MODE. File: vendor/phpageBuilder/hansschouten/src/Core/DB.php Line 32 Change this: into this: migrate and then revert the change. Hope it helps. |
I have never used this repo myself, instead I use the core https://github.com/HansSchouten/PHPageBuilder in Laravel instead with some customizations. In my service provider I create a phpagebuilder singleton:
I have a controller to edit pages via the pagebuilder:
A controller to render pages:
And after all (backend) routes I use a catch-all to render frontend pages:
Hopefully some day I have time to translate this to the Laravel-Pagebuilder library, but for now I can customize my project easier this way. So if anyone knows a fix for the migration issue feel fry to make a pull request, or if one wants to ommit the Laravel library layer and use PHPageBuilder core instead maybe this might help as well. |
I'll see if I can diagnose a fix without changing the main package |
Thanks, it works 👍 |
these we can do in local host but want it be difficult to do in server? |
Other possible solutions is run in this order the commands 1 composer require hansschouten/laravel-pagebuilder 2 php artisan migrate 3php artisan vendor:publish --provider="HansSchouten\LaravelPageBuilder\ServiceProvider" --tag=config |
This solution works, the only thing is the DB.php path |
I tried installation following the instructions step by step
I cannot migrate because a table cannot be found, but the migration is meant to add the table it is checking for
Temporary fix , migrate before publishing config then change prefix to nothing
The text was updated successfully, but these errors were encountered: