Getting Error when using Laravel Shopify Library

Topic summary

A developer is encountering a MissingShopDomain error when attempting to add additional views/routes to their Laravel Shopify application using the osiset/laravel-shopify library (https://github.com/osiset/laravel-shopify).

Technical Details:

  • Error occurs when adding routes beyond the initial welcome view
  • Routes are wrapped in auth.shopify middleware
  • Blade templates extend a default layout and include script sections
  • Uncertainty exists about whether the issue stems from route configuration or blade template script tags

Code Shared:

  • Route definitions in web.php
  • Multiple blade template files (welcome.blade.php, settings.blade.php, default.blade.php)

Status: The issue remains unresolved. One other user responded expressing similar frustration with Shopify integration but provided no solution or diagnostic assistance.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

I am using the following plugin https://github.com/osiset/laravel-shopify for my larval Shopify app but everytime I try to add another view to the route I am getting a MissingShopingDomain Error.

I’m not sure what is causing this if its something the way my routes are being written or what’s in the script tags in each of the blade templates. Thanks!

web.php

use Illuminate\Support\Facades\Route;> Route::middleware([“auth.shopify”])->group(function(){> Route::view(“/”,“welcome”);> Route::view(“/settings”,“settings”);> });
default.blade.php
@extends(‘shopify-app::layouts.default’)> @section(‘content’)> @endsection> > @section(‘scripts’)> @endsection
welcome.blade.php
@extends(‘default’)> @section(‘content’)> >

This is the welcome page

Go to settings> @endsection> > @section(‘scripts’)> @parent> > @endsection
settings.blade.php

@extends(‘default’);> @section(‘content’)>

This is the Settings page

Go back to welcome> @endsection> @section(‘scripts’)> @parent> > @endsection

Same, shopify + php is : :poop: