Laravel shopify integration

Issue with Installing Laravel Application on Shopify: Error “Can only instantiate this object with an int”

I’m trying to integrate a Laravel application into Shopify using the kyon147/laravel-shopify package. The setup process is complete, but when I attempt to install the app via the Shopify Partner Dashboard, I encounter the error: “Can only instantiate this object with an int.”

I suspect the issue is related to the configuration of the users table in my database. I have already tried creating a new database and running the migrations provided by the package, but the error persists.

also want to mention that password , password_updated_at , theme_support_level are going null . And when i add this all row from the working database then it run without any error

What could be causing this issue, and how can I resolve it?

Hi Mandeep,

It’s possible this error is specific to the Laravel package you’re using - have you tried opening an issue on the repo here: Issues · Kyon147/laravel-shopify · GitHub

in package i debugged
$model = $this->model;
$shop = new $model();
$shop->name = $domain->toNative();
$shop->password = $token->isNull() ? ‘’ : $token->toNative();
$shop->email = “shop@{$domain->toNative()}”;
$shop->save();
// dd($shop);
dd($shop->getAttributes());

and it give id param as _id means this is the real problem but in table i have id
note:- previously i had Accessors or Mutators to use id as _id but i removed now but i dont know where it get stored

issue is solved problem was with the id param it was going _id

Great to hear you figured this out Mandeep!