Target class [verify.shopify] does not exist.

Solved

Target class [verify.shopify] does not exist.

tinyman1199
Shopify Partner
9 1 2

Hi All.

I keep getting the error

production.ERROR: Target class [verify.shopify] does not exist. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [verify.shopify] does not exist.

I don't know why as I'm following the documentation here: https://github.com/gnikyt/laravel-shopify/wiki/Installation#routing

Any help would be appreciated. Thanks in Advance
Here is my code in the web.php:

Route::get('/', [WelcomeController::class,'index'])->middleware(['verify.shopify'])->name('home');
Accepted Solution (1)

nikwen
Tourist
5 1 0

This is an accepted solution.

Is the middleware registered properly? See this for an example of how to register it: https://github.com/gnikyt/laravel-shopify/blob/7beefe780bdf60a91663176c2c61b626d95e3c60/tests/Stubs/...

View solution in original post

Replies 3 (3)

nikwen
Tourist
5 1 0

This is an accepted solution.

Is the middleware registered properly? See this for an example of how to register it: https://github.com/gnikyt/laravel-shopify/blob/7beefe780bdf60a91663176c2c61b626d95e3c60/tests/Stubs/...

tinyman1199
Shopify Partner
9 1 2

Thanks, that fixed it.

GuillermoFlores
Shopify Partner
1 0 0

Hi, I have the same issue here. Using Laravel 9 and add it the class to the kernel. How do you manage to solve it? Thanks in advance