gnikyt / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
1.24k stars 374 forks source link

Target class [auth.shop] does not exist. #920

Closed daviTKEES closed 2 years ago

daviTKEES commented 3 years ago

I am Trying to Create My First Shopify App Using Laravel, But I am Stuck in this error.

Illuminate\Contracts\Container\BindingResolutionException
Target class [auth.shop] does not exist.

my web.php file is like that:

<?php

use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
})->middleware(['auth.shop'])->name('home');
and the version is "osiset/laravel-shopify": "^17.1"

someone could help me?

muhammadasfar commented 3 years ago

@daviTKEES Hi,

For osiset/laravel-shopify version 17, you have to use verify.shopify in your middleware.

For routing see this package wiki link

gnikyt commented 3 years ago

@daviTKEES correct on above comment, where did you see code like this? I'd like to update the wiki if that's where it came from

tkeesdevs commented 3 years ago

@daviTKEES Hi,

For osiset/laravel-shopify version 17, you have to use verify.shopify in your middleware.

For routing see this package wiki link

you are right!

Tks for help!

I am using now: Route::get('/', function () { return view('welcome'); })->middleware(['verify.shopify'])->name('home');

tkeesdevs commented 3 years ago

@daviTKEES correct on above comment, where did you see code like this? I'd like to update the wiki if that's where it came from

I saw here https://www.youtube.com/watch?v=0SF0S2wn3cM

muhammadasfar commented 3 years ago

@tkeesdevs It's better to follow this package's Wiki doc instead of tutorials as @osiset and contributors are updating this wiki doc with every release.

tkeesdevs commented 3 years ago

@tkeesdevs It's better to follow this package's Wiki doc instead of tutorials as @osiset and contributors are updating this wiki doc with every release.

Yeah, I agree, I was trying to learn about installing the App, but I decided to finish the video and I got this problem, to be honest, I read the doc after and got the solution, but I am very grateful for the help and very excited with the progress I am having now.

Kyon147 commented 2 years ago

Closing as related to pre-v17.