Follow those instructions step by step to set everything up.
Check out our starter kit to get you started as fast as possible
DB_CONNECTION=sqliteDB_FOREIGN_KEYS=true​MOLLIE_KEY=test_XXXXXXXX
With this setup, we will use SQLite as a file-based database. It's important to activate the foreign keys as shown above.
More information: Laravel documentation.
If you prefer using MySQL, feel free to do so. A default setup might look similar to this example:
DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=yourdatabasenameDB_USERNAME=yourusernameDB_PASSWORD=yourpassword
More information: Laravel documentation.
During installation, all needed assets will be published.
We would recommend publishing the view files manually.
Require the butik package via composer
composer require jonassiewertsen/statamic-butik
It may happen that the allowed memory for composer is exhausted. This command does bypass the memory limit for this command.
COMPOSER_MEMORY_LIMIT=-1 composer require jonassiewertsen/statamic-butik
This script will migrate your database and set up some default values. Everything can be customized to a later point, but it will get you started as fast as possible.
php please butik:setup
You need to define your default country in your config file.
This country will be the default country, as long as the user does not choose another country to ship to. This is important when deciding to ship exclusively to one country or to several countries.
A Redis queue driver will give your page a speed boost, especially with sending e-mails.
Butik does work with the default Laravel/Statamic setup. You don't need to set it up, we do recommend it though.
The short and incomplete version, on how to set it up:
Add in your .env file QUEUE_DRIVER=redis
Install predis via composer composer require predis/predis
​The complete documentation​