brikdigital / craft-baseplate
Package info
github.com/brikdigital/craft-baseplate
Language:Twig
pkg:composer/brikdigital/craft-baseplate
Requires
- php: ^8.5
- craftcms/ckeditor: ^6.0.0-beta.2
- craftcms/cms: ^6.0.0-beta.2
- laravel/framework: ^13.17
- laravel/tinker: ^3.0
- symfony/http-client: ^8.1
- symfony/postmark-mailer: ^8.1
Requires (Dev)
- fakerphp/faker: ^1.23
- laravel/pail: ^1.2.5
- laravel/pao: ^1.0.6
- laravel/pint: ^1.27
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- phpunit/phpunit: ^12.5.12
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 11:19:12 UTC
README
Setup guide
It's possible to do this setup without first setting up a blank DDEV project; but you'll need a local install of PHP and Composer. This approach is completely possible but unsupported, and as such will not be documented.
mkdir -p project-name/public_html && cd project-name
ddev config --php-version 8.3 --database mysql:8.0 --docroot public_html --project-type craftcms
rm -rf public_html
ddev composer create-project brikdigital/craft-baseplate .
# edit .ddev/config.yaml to contain the correct project name
ddev restart
Development
To start the Vite dev server, use either ddev pnpm serve or make dev. (the latter of which is a legacy command)
Instructions for migrating singles to indexes (separated by site)
Prepare
- Create section “Indexes” with all entry types of existing singles
- Type: Structure
- URI:
{parent.uri}/{slug} - Template:
_sections/indexes/entry.twig - Propagation: Only save entries to the site they were created in
- Default table columns: Entry Type, Status, Date Updated, Authors, Link
- Settings > Users > For each user group: Assign permissions for indexes
- Navigation > Edit Settings for each menu > Permissions: Enable indexes
- Remember to check all sites for menu's, since some menu’s may only be on specific site
- Templates
- Create
templates/_sections/indexes/entry.twigcontaining{% include '_sections/indexes/' ~ entry.type.handle ~ '.twig' %} - Move all templates of singles into indexes directory and rename each template to the handle of the entry type it is used for
- Check the single templates for extends/includes query that use
..in path and may now be incorrect - Search project for usage of section handles of singles in queries. Replace these with
section('indexes').type(ENTRY_TYPE_HANDLE)
- Create
Execute
When ready to deploy to production
- Create manual backup of production database
- Run
ddev craft site-module/migrate-singles/set-legacy-uri-formatlocally- Deploy these changes first. The site will be broken now.
- After configuration changes have been deployed, execute the following commands directly on the server
php craft site-module/migrate-singles/migrate-singlesphp craft site-module/migrate-singles/migrate-fields- If Navigation-plugin is used:
php craft site-module/migrate-singles/migrate-nav-nodes
- When confirmed everything is working: Delete all old sections of singles
Notes when updating dependencies
Biome, Prettier & Lefthook
If there is a major version upgrade, please consult the release notes on the respective repositories to see if there are any breaking changes.