Publish assets

Using the Starter Kit? Normally you don't need to worry about publishing assets then.

butik will automatically publish the following assets during installation:

  • Config file

  • Images

  • resources

The resources (javascript file for the control panel and css file for the frontend) will be forced to overwrite existing files.

To avoid

Config

php artisan vendor:publish --tag="butik-config"

Will be published to config/butik.php

The config file will automatically be published during the installation process. In case of updates, you need to change the config file manually.

Collections

php artisan vendor:publish --tag="butik-collection"

Will be published to resources/blueprints/collections/

The product collection will automatically be published during the installation process.

Blueprints

php artisan vendor:publish --tag="butik-blueprints"

Will be published to resources/blueprints/collections/

The product blueprint will automatically be published during the installation process.

Views

php artisan vendor:publish --tag="butik-views"

Use our templates as your starting point

Will be published to resources/views/vendor/butik/

The views will automatically be published during the installation process. In case of updates, you need to change the views manually.

Images

php artisan vendor:publish --tag="butik-images"

Want to use our SVGs or replace them?

Will be published to public/vendor/butik/images/

Language files

php artisan vendor:publish --tag="butik-lang"

If you want to add or edit language files.

Will be published to /resources/lang/

All assets

php artisan vendor:publish --provider="Jonassiewertsen\StatamicButik\StatamicButikServiceProvider"

This command will publish all available assets