Step 1: Create an account at Shopify Dev.
- Note: Create the app manually.
composer create-project laravel/laravel example-app
composer require kyon147/laravel-shopify
php artisan vendor:publish --tag=shopify-config
config/shopify-app.php
You will find the api key variables here.
Also copy and paste shopify app client credentials
Download ngrok on your pc and open Then use this command for add authtoken after install ngrok use this command
ngrok http 8000
Route::get('/', function () {
return view('welcome');
})->middleware(['verify.shopify'])->name('home');
First add these 2 line on the class
use Osiset\ShopifyApp\Contracts\ShopModel as IShopModel;
use Osiset\ShopifyApp\Traits\ShopModel;
Next, modify the class line to become
class User extends Authenticatable implements IShopModel
Next, inside the class, add:
use ShopModel;