This module is the sample for creating a Craft CMS Module. This extends from the Viget Base composer package, so that functionality can be included on the site without having to duplicate it. Be sure to use the latest version of the package in your composer.json
.
- Copy
./modules
to./modules
- Rename the module for your needs (client acronym makes sense)
- Update all of the namespace references
- Merge your
./config/app.php
with the sample./config/app.php
accounting for the namespace change - Merge your
composer.json
with the samplecomposer.json
accounting for the namspace change - Run
composer dump-autoload -a
- Add the following
ENV
variables to your enviroment file:Using the base ID from the Craft Inventory Airtable and the API key from 1Password for the Viget Airtable account.AIRTABLE_API_KEY AIRTABLE_BASE