Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Overriding and Extending

Tyler King edited this page Oct 9, 2020 · 13 revisions

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.

Welcome to the wiki!

Please see the homepage for a list of relevant pages.

Clone this wiki locally