Skip to content

Commit c147529

Browse files
committed
feat: update mvc console docs
1 parent 522247c commit c147529

File tree

2 files changed

+37
-42
lines changed

2 files changed

+37
-42
lines changed

.vitepress/config/head.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -162,24 +162,24 @@ const head: HeadConfig[] = [
162162
// 'utf-8'
163163
// ),
164164
// ],
165-
// [
166-
// 'script',
167-
// {
168-
// async: '',
169-
// src: 'https://www.googletagmanager.com/gtag/js?id=G-QGZVHHLK12',
170-
// },
171-
// ],
172-
// [
173-
// 'script',
174-
// {},
175-
// `
176-
// window.dataLayer = window.dataLayer || [];
177-
// function gtag(){dataLayer.push(arguments);}
178-
// gtag('js', new Date());
165+
[
166+
'script',
167+
{
168+
async: '',
169+
src: 'https://www.googletagmanager.com/gtag/js?id=G-QGZVHHLK12',
170+
},
171+
],
172+
[
173+
'script',
174+
{},
175+
`
176+
window.dataLayer = window.dataLayer || [];
177+
function gtag(){dataLayer.push(arguments);}
178+
gtag('js', new Date());
179179
180-
// gtag('config', 'G-QGZVHHLK12');
181-
// `,
182-
// ],
180+
gtag('config', 'G-QGZVHHLK12');
181+
`,
182+
],
183183
];
184184

185185
export default head;

src/docs/mvc/console.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ These commands help you quickly create files and structure your app.
108108

109109
### Generate Commands
110110

111-
These commands are used to generate files for your project, saving you time by automating tasks like creating controllers, models, migrations, etc.
111+
These commands are used to generate files for your project, saving you time by automating tasks like creating controllers, models, schema files, etc.
112112

113113
- Create a Controller
114114

@@ -124,7 +124,7 @@ These commands are used to generate files for your project, saving you time by a
124124
php leaf g:controller [name] --resource
125125
```
126126

127-
You can also create a controller with a model or migration:
127+
You can also create a controller with a model or schema file:
128128

129129
```bash:no-line-numbers
130130
php leaf g:controller [name] --model
@@ -139,18 +139,18 @@ These commands are used to generate files for your project, saving you time by a
139139
php leaf g:model [name]
140140
```
141141

142-
To create a model with a migration, use:
142+
<!-- To create a model with a migration, use:
143143
144-
```bash:no-line-numbers
145-
php leaf g:model [name] --migration
146-
```
144+
```bash:no-line-numbers
145+
php leaf g:model [name] --migration
146+
``` -->
147147

148148
- Other Generate Commands
149149

150150
- Factory: php leaf g:factory [name]
151151
- Helper: php leaf g:helper [name]
152152
- Mailer: php leaf g:mailer [name]
153-
- Migration: php leaf g:migration [name]
153+
- Schema file: php leaf g:schema [name]
154154
- Seed: php leaf g:seed [name]
155155
- View Template: php leaf g:template [name] --type=[blade|jsx|vue|html]
156156

@@ -160,7 +160,7 @@ These are the reverse of generate commands—use them to delete files.
160160

161161
- Delete Controller: php leaf d:controller [name]
162162
- Delete Model: php leaf d:model [name]
163-
- Delete Migration: php leaf d:migration [name]
163+
- Delete Schema: php leaf d:schema [name]
164164
- Delete Seed: php leaf d:seed [name]
165165

166166
### Database Commands
@@ -177,7 +177,7 @@ Leaf MVC makes database management easy with these commands.
177177

178178
- Migrate Database
179179

180-
To run your migrations and set up your database schema, run:
180+
To migrate your db using your schema files, run:
181181

182182
```bash:no-line-numbers
183183
php leaf db:migrate
@@ -256,7 +256,7 @@ These commands handle your frontend setup, building, and serving.
256256
This is a list of every command available in Aloe. To view this list from your terminal, run `php leaf list`.
257257

258258
```bash:no-line-numbers
259-
Leaf MVC v3.8.0
259+
Leaf MVC v4.x-BETA
260260
261261
Usage:
262262
command [options] [arguments]
@@ -279,23 +279,17 @@ Available commands:
279279
app
280280
app:down Place app in maintainance mode
281281
app:up Remove app from maintainance mode
282-
auth
283-
auth:scaffold Scaffold basic app authentication
284282
config
285283
config:lib Setup Leaf MVC to use external libraries
286-
config:mail Install leaf mail and setup mail config
284+
config:publish Publish config files to your project
287285
d
288286
d:command Delete a console command
289287
d:controller Delete a controller
290-
d:factory Delete a model factory
291-
d:migration Delete a migration
292288
d:model Delete a model
293-
d:seed Delete a model seeder
294289
db
295-
db:install Create new database from .env variables
296-
db:migrate Run the database migrations
297-
db:reset Rollback, migrate and seed database
298-
db:rollback Rollback all database migrations
290+
db:migrate Migrate your db schema files
291+
db:reset Reset migration history + db tables
292+
db:rollback Rollback database to a previous state
299293
db:seed Seed the database with records
300294
devtools
301295
devtools:install Install the Leaf PHP devtools
@@ -304,16 +298,17 @@ Available commands:
304298
g
305299
g:command Create a new console command
306300
g:controller Create a new controller class
307-
g:factory Create a new model factory
308301
g:helper Create a new helper class
309302
g:mailer Create a new mailer
310303
g:middleware Create a new application middleware
311-
g:migration Create a new migration file
312304
g:model Create a new model class
313-
g:seed Create a new seed file
314-
g:template Create a new view file
305+
g:schema Create a new schema file
306+
g:template [g:view] Create a new view file
315307
key
316-
key:generate Run your frontend dev server
308+
key:generate Generate/Regenerate your app key
309+
scaffold
310+
scaffold:auth Scaffold basic app authentication
311+
scaffold:mail Install leaf mail and setup mail config
317312
view
318313
view:build Run your frontend dev server
319314
view:dev [view:serve] Run your frontend dev server

0 commit comments

Comments
 (0)