binshops / laravel-blog

Laravel Blog Package/ Laravel CMS. Easiest way to add a blogging system to your Laravel website. Laravel Blog.
https://www.binshops.com
MIT License
429 stars 134 forks source link

Categories parent_id not found #3

Closed wast closed 4 years ago

wast commented 4 years ago

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'parent_id' in 'where clause' (SQL: select * from blog_etc_categories where parent_id is null)

Command php artisan vendor:publish --provider="WebDevEtc\BlogEtc\BlogEtcServiceProvider" doesn't copy migrations.

php artisan vendor:publish --provider="WebDevEtc\BlogEtc\BlogEtcServiceProvider" Copied Directory [/vendor/hessam/laravel-blogger/src/Views/blogetc] To [/resources/views/vendor/blogetc] Publishing complete.

samberrry commented 4 years ago

Hi @wast, see this link: https://hessam.binshops.com/laravel-blog-package you should change this file config/laravel-fulltext.php file change and edit these fields: exclude_feature_enabled to true and exclude_records_column_name to is_published.

For migration issue, do you have any warning or error while entering php artisan vendor:publish command?

thanks for your contribution

wast commented 4 years ago

No warnings with php artisan vendor:publish

What I have done was manually copy https://github.com/vhessam/laravel-blogger/blob/master/migrations/2020_05_27_104123_add_parameters_blog_etc_categories_table.php to my project migrations folder and then ran php artisan migrate and it passed.

samberrry commented 4 years ago

I tested it, it was ok. If problem with migrations persists I do testing more.