This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 374
Overriding and Extending
Tyler King edited this page Oct 9, 2020
·
13 revisions
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.
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
.
Simply edit your Laravel user's model class.
road map
Welcome to the wiki!
Please see the homepage for a list of relevant pages.