-
-
Notifications
You must be signed in to change notification settings - Fork 159
Overriding and Extending
Luke Walsh edited this page Dec 18, 2022
·
1 revision
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.