Skip to content

Commit 451e205

Browse files
committed
feat: add scaffolds docs
1 parent 324c193 commit 451e205

File tree

2 files changed

+35
-10
lines changed

2 files changed

+35
-10
lines changed

.vitepress/config/sidebar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const sidebar = [
99
{ text: 'Migration Guide', link: '/docs/migrating' },
1010
// { text: 'Functional Mode', link: '/docs/config/functional-mode' },
1111
{ text: 'Modules', link: '/docs/modules' },
12-
{ text: 'Leaf MVC Scaffolding', link: '/docs/mvc/scaffolds' },
12+
{ text: 'App Scaffolding', link: '/docs/mvc/scaffolds' },
1313
],
1414
},
1515
// {

src/docs/mvc/scaffolds.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,46 @@ You get:
4343

4444
<img src="https://github.com/user-attachments/assets/3f078440-a7a1-4586-9239-a738398f9536" alt="lander" width="100%" class="border border-gray-500 rounded-lg">
4545

46-
## Coming Soon page/Waitlist page <Badge type="warning">Coming Soon</Badge>
46+
## Billing Subscription
4747

48-
A waitlist/coming page is the easiest way to put your product out there, generate engagement and get some leads all while your application is still in development. You will be able to scaffold these pages using:
48+
Subscriptions are pretty common in modern applications, but quite annoying to set up. Leaf MVC's scaffolding tool allows you to scaffold a billing subscription system with a single command:
4949

5050
```bash:no-line-numbers
51-
php leaf scaffold:waitlist
51+
php leaf scaffold:subscriptions
52+
```
53+
54+
It requires [Leaf Billing](/docs/utils/billing/) to be installed, and you get:
55+
56+
- A pricing component in whatever frontend setup you are using
57+
- Subscription/cancellation controllers
58+
- Webhooks/callbacks/routes for Stripe
59+
- Database schema, models and config
60+
61+
<img src="https://github.com/user-attachments/assets/8e7f9be6-89f8-42de-a245-e46d73c9baf7" alt="billing" width="100%" class="border border-gray-500 rounded-lg">
62+
63+
## Waitlists
64+
65+
Creating a waitlist/coming soon page is a great way to build anticipation for your product before it launches. It allows you to collect email addresses from interested users, which can be invaluable for marketing and user engagement once your product is live. You can scaffold a waitlist using:
5266

53-
# or for coming soon
54-
php leaf scaffold:coming-soon
67+
```bash:no-line-numbers
68+
php leaf scaffold:waitlist
5569
```
5670

5771
These will give you:
5872

59-
- Structured waitlist/coming soon pages
60-
- Middleware and routes to redirect to waitlist/coming soon page
73+
- Waitlist component for collecting emails in your frontend setup
74+
- Middleware to restrict accidental access to your app
6175
- Models and schema files for email collection
62-
- Jobs to export waitlist
63-
- Mailers to notify waitlist
76+
- Waitlist invites and more
77+
78+
<img src="https://github.com/user-attachments/assets/dac0822a-5cc8-4b9a-a818-bb66895c45bd" alt="billing" width="100%" class="border border-gray-500 rounded-lg">
79+
80+
## More coming soon
81+
82+
We are working on scaffolding for more features like:
83+
84+
- Blog
85+
- Admin panel
86+
- API Dashboard & more.
87+
88+
We'll be adding these in the future, so stay tuned!

0 commit comments

Comments
 (0)