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

You pushed Laravel library 3 years ago. Do you believe, this library will work on Laravel 10? #149

Open awesome1128 opened 1 year ago

awesome1128 commented 1 year ago

You pushed Laravel library 3 years ago. Do you believe, this library will work on Laravel 10?

And when I run "php artisan migrate" command in Laravel project, I keep getting this error. image

Do you know why? Please let me know, thanks.

awesome1128 commented 1 year ago

Why don't you reply? Don't you have confidence in your code?

awesome1128 commented 1 year ago

Why I get this error? As you know, php artisan migrate command is for adding tables to the database, but this error says that your script is trying to connect to the table before adding tables.
Weird concept!!! Do you know why? Thanks.

image

absalan commented 1 year ago

I have installed on Laravel 10 and it loads everything. You just need to do some manual work. For example, create the setting table manually. You can use this:

CREATE TABLE `pagebuilder_settings` (
  `id` int(11) NOT NULL,
  `setting` varchar(50) NOT NULL,
  `value` mediumtext NOT NULL,
  `is_array` tinyint(1) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

ALTER TABLE `pagebuilder_settings`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `pagebuilder_settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

Also you don't need to intimidate the developer to respond to your comment. he might be busy and he has his own life to take care of. Just be patient and have some respect.