Skip to content
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

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

Open
awesome1128 opened this issue Aug 10, 2023 · 5 comments

Comments

@awesome1128
Copy link

awesome1128 commented Aug 10, 2023

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
Copy link
Author

awesome1128 commented Aug 11, 2023

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

@awesome1128
Copy link
Author

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
Copy link

absalan commented Aug 14, 2023

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.

@JohnnyQ352
Copy link

From what I am looking at. You have to make sure to tweak the PHP file so that it matches your DB definition. Check your database.php (inside config) and your .env files for the definition and compare it to the DB.php so that they match properly. it is important that the drivers are match. So if your default driver is SQL but the DB matchs MySQL drivers it will have a problem. I am not saying this is your exact problem but it sounds like you have a possible there. Remember that the tool attempts to confirm data connections so it conforms to the site automation processes.

@JohnnyQ352
Copy link

JohnnyQ352 commented Dec 5, 2024

oh and clear you caches.. including views etc..
Here is an artisan i created for that. You can create it and run it from terminal:

// Johnny 02-06-2023
// I created this to clear all caches

namespace App\Console\Commands\Setup;

use Illuminate\Console\Command;

class clearcache extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'setup:clearcache';

/**
 * The console command description.
 *
 * @var string
 */
protected $description = 'Clears All Cache and Creates Consolidated New Caches';

/**
 * Create a new command instance.
 *
 * @return void
 */
public function __construct()
{
    parent::__construct();
}

/**
 * Execute the console command.
 */
public function handle(): void
{

    $this->call('cache:clear');
    $this->call('view:clear');
    $this->call('view:cache');
    $this->call('config:clear');
    $this->call('config:cache');
    $this->call('event:clear');
    $this->call('event:cache');
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants