A Vue front-end scaffolding preset for Laravel Shopify.
- Fresh install Laravel Shopify >= 14.0 on Laravel >= 8.0 and
cd
to your app. - Install this preset via
composer require UnicornGlobal/laravel-shopify-vue --dev
. Laravel will automatically discover this package. No need to register the service provider.
- Use
php artisan ui laravel-shopify-vue
for the preset npm install && npm run dev
php artisan serve
(or equivalent) to run server and test preset.
Add a MIX_SHOPIFY_APP_STORE_PAGE
env variable pointing to your app
store listing. This is where users who load the app directly into their
URL bar get sent to install the application.
Update resources/js/config.js
with the name of your application.
You can make API endpoints in the new ApiController.
See the files in the resources/js
folder for more info.
There is basic support for some actions. They will be available on
this.$actions
or Vue.prototype.$actions
.
Not all actions are included. Other examples exist in pages/Example.vue
.
This installs a custom fork of @eastsideco/polaris-vue
This is only a proof of concept and should not be used in production.