Skip to content

Commit 643bafb

Browse files
Restructuring
1 parent 3743757 commit 643bafb

4 files changed

Lines changed: 15 additions & 27 deletions

File tree

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,30 @@ php please starter-kit:install mindtwo/statamic-base
1818
- **Dashboard Widgets**: Customized dashboard with helpful widgets
1919

2020
### Frontend Stack
21-
- **Tailwind CSS 4** with @tailwindcss/forms and @tailwindcss/typography
21+
- **Tailwind CSS 4** with [@tailwindcss/forms](https://github.com/tailwindlabs/tailwindcss-forms) and [@tailwindcss/typography](https://github.com/tailwindlabs/tailwindcss-typography)
2222
- **Alpine.js 3** for interactive components
2323
- **Vite 7** for modern asset building
24-
- **Complete form system** with validation and responsive design
2524

2625
### Content Management
27-
- **Eloquent Driver**: Database storage for better performance
26+
- **Eloquent Driver**: Database storage for better workflows, performance and more stable deployments
2827
- **Multilingual Setup**: German/English with proper SEO
2928
- **Content Structure**: Pre-configured collections and blueprints
29+
- **Global fields setup**: Centralized field management
3030
- **Navigation**: Dynamic menus and navigation trees
31-
- **Forms**: Ready-to-use contact forms with CAPTCHA (Cloudflare Turnstile) support
32-
- **Form Components**: Text, textarea, select, checkboxes, radio, toggle, files
31+
- **Forms**: Ready-to-use contact forms with optional CAPTCHA (Cloudflare Turnstile) support
3332

3433
## Dependencies
3534

3635
### Automatically Installed
3736
- `statamic/cms` - Statamic CMS core
3837
- `statamic/eloquent-driver` - Database storage
39-
- `aryehraber/statamic-captcha` - Form protection
4038
- `spatie/laravel-data` - Data Transfer Objects
4139
- `laravel/envoy` - Deployment automation
4240
- `laravel/boost` - Development tools
4341
- `mindtwo/statamic-base` - This package (widgets & utilities)
4442

4543
### Optional
44+
- `aryehraber/statamic-captcha` - Form protection ([documentation](https://github.com/aryehraber/statamic-captcha))
4645
- `sentry/sentry-laravel` - Error tracking (prompted during install)
4746

4847
## Configuration
@@ -120,14 +119,13 @@ php artisan statamic:eloquent:import-all
120119

121120
### 2.1. User Database Storage (Optional)
122121

123-
To store users in the database instead of files, follow the [Statamic guide for storing users in a database](https://statamic.dev/tips/storing-users-in-a-database). The necessary configuration files are already included in the `export/` directory.
122+
To store users in the database instead of files, the necessary configuration files (User model, auth config, users config) are already included. Follow the [Statamic guide for storing users in a database](https://statamic.dev/tips/storing-users-in-a-database) for details.
124123

125124
```bash
126-
# Additional migration for user storage
125+
# Run additional migration for user storage
127126
php artisan migrate
128127

129-
# Import user configuration
130-
# Files in export/ directory will be automatically processed
128+
# The configuration files will be processed with the import command above
131129
```
132130

133131
### 3. Frontend Setup

export/config/captcha.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

export/resources/views/components/form.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161

6262
{{ $slot ?? '' }}
6363

64+
{{-- Uncomment below if CAPTCHA module is enabled --}}
65+
{{--
6466
<div class="mt-8">
6567
{!! Statamic::tag('captcha') !!}
6668
@@ -72,6 +74,7 @@
7274
@push('scripts')
7375
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
7476
@endpush
77+
--}}
7578

7679
<div class="mt-8">
7780
<button type="submit" class="flex" :disabled="submitting">

starter-kit.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export_paths:
2424
- resources/views
2525
- vite.config.js
2626
dependencies:
27-
aryehraber/statamic-captcha: ^1.14
2827
mindtwo/statamic-base: ^0.1.2
2928
spatie/laravel-data: ^4.17
3029
statamic/cms: ^5.0
@@ -33,6 +32,10 @@ dependencies_dev:
3332
laravel/boost: ^1.1
3433
laravel/envoy: ^2.10
3534
modules:
35+
captcha:
36+
prompt: 'Do you want to include CAPTCHA (e.g. Turnstile) protection for forms?'
37+
dependencies:
38+
aryehraber/statamic-captcha: ^1.14
3639
sentry:
3740
prompt: 'Do you want to include Sentry error tracking?'
3841
dependencies:

0 commit comments

Comments
 (0)