HansSchouten / Laravel-Pagebuilder

A drag and drop pagebuilder to manage pages in any Laravel project
https://www.phpagebuilder.com
MIT License
799 stars 184 forks source link

Fix: unpublishable config & demo-theme #161

Open se09deluca opened 7 months ago

se09deluca commented 7 months ago

Currently the configs and demo theme are publishable only if schema has been already migrated. This PR aims to make the config publishable before the schema migration.

Since the name of database depends on the config, publishing the config before schema migration gives a more linear installation flow. https://github.com/HansSchouten/Laravel-Pagebuilder/blob/26898767ef6e441909fc8a4ce2de8581a78dc617/src/ServiceProvider.php#L34

Related issue:

155

Shaz3e commented 5 months ago

This needs to be merged as I cannot run the command to publish the config

php artisan vendor:publish --provider="HansSchouten\LaravelPageBuilder\ServiceProvider" --tag=config