Skip to content

Commit

Permalink
Add make to generate commands in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
haringsrob committed Aug 16, 2022
1 parent 844d38a commit 72e2efb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/artisan-commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Here is an overview:

* `php artisan twill:superadmin` - As noted above, this command will prompt you to create a new superadmin user, requesting a user email address and then a password. Run this command on its own if you need to quickly generate a new superadmin user.

* `php artisan twill:module {moduleName}` - This command is extremely helpful in bootstrapping the files you will need to manage new models. It is detailed extensively in the [CRUD Modules section](/crud-modules/cli-generator.html) of the documentation.
* `php artisan twill:make:module {moduleName}` - This command is extremely helpful in bootstrapping the files you will need to manage new models. It is detailed extensively in the [CRUD Modules section](/crud-modules/cli-generator.html) of the documentation.

* `php artisan twill:lqip` - This command generates low-quality image placeholders (LQIP) of your media files as base64 encoded strings that you can inline in your HTML response to avoid an extra image request. This is a strategy deployed in media management to improve initial page load times. The default behavior of this command is to generate LQIP for any media files that do not already have an LQIP alternative. Use the `--all` flag to generate new LQIP for all media files. To learn more about media management, check out the [media library section](/media-library/) of the documentation.
4 changes: 2 additions & 2 deletions docs/src/crud-modules/cli-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pageClass: twill-doc
You can generate all the files needed in your application to create a new CRUD module using Twill's Artisan generator:

```bash
php artisan twill:module moduleName
php artisan twill:make:module moduleName
```

The command accepts several options:
Expand All @@ -20,7 +20,7 @@ The command accepts several options:
- `--hasRevisions(-R)`, to allow comparing and restoring past revisions of records
- `--hasNesting(-N)`, to enable nested items in the module listing (see [Nested Module](/crud-modules/nested-modules.html))

The `twill:module` command will generate a migration file, a model, a repository, a controller, a form request object and a form view.
The `twill:make:module` command will generate a migration file, a model, a repository, a controller, a form request object and a form view.

Add the route to your admin routes file(`routes/admin.php`).

Expand Down
4 changes: 2 additions & 2 deletions docs/src/crud-modules/nested-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ Items of the child module can't be created independently.
We'll use the `slug` and `position` features in this example but you can customize as needed:

```
php artisan twill:module issues -SP
php artisan twill:module issueArticles -SP
php artisan twill:make:module issues -SP
php artisan twill:make:module issueArticles -SP
```

Add the `issue_id` foreign key to the child module's migration:
Expand Down
2 changes: 1 addition & 1 deletion docs/src/form-fields/multi-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ In this case that it can be implemented as follows:
- Create a Sectors [module](/crud-modules/cli-generator.html)

```
php artisan twill:module sectors
php artisan twill:make:module sectors
```

- Create a migration for a pivot table.
Expand Down

0 comments on commit 72e2efb

Please sign in to comment.