Skip to content

Overriding and Extending

Luke Walsh edited this page Dec 18, 2022 · 1 revision

Routes

You can override built-in routes to this package by settings the config variable SHOPIFY_MANUAL_ROUTES (or see config/shopify-app.php).

Example, to set your own home route:

SHOPIFY_MANUAL_ROUTES=home

To override multiple routes:

SHOPIFY_MANUAL_ROUTES=home,billing

This allows you to now utilize your own routes/web.php to set a controller for home and billing routes.

Views

If you wish to simply change a view in this package, such as the layout file...

Laravel will look for views in resources/views/vendor/shopify-app. To override the layout view you would create resources/views/vendor/shopify-app/layouts/default.blade.php.

Models

Simply edit your Laravel user's model class.