|
5 | 5 | [](https://scrutinizer-ci.com/g/coolsam726/jetstream-inertia-generator)
|
6 | 6 | [](https://packagist.org/packages/savannabits/jetstream-inertia-generator)
|
7 | 7 |
|
8 |
| -**Jetstream Inertia Generator** a.k.a **jig** allows you to generate code for simple Admin CRUDs (Create, Read, UPdate, Delete) which are fully compatible with a Laravel Project powered by the [Jetstream - Inertia - Vue.js](https://jetstream.laravel.com/2.x/stacks/inertia.html) Stack. |
| 8 | +**Jetstream Inertia Generator** a.k.a **jig** allows you to generate code for simple Admin CRUDs (Create, Read, UPdate, Delete) which are fully compatible with a Laravel Project powered by the [Jetstream - Inertia - Vue.js](https://jetstream.laravel.com/2.x/stacks/inertia.html) Stack. |
| 9 | + |
9 | 10 | ## Scenario
|
10 | 11 | You are developing a NextGen project. The data model is complex. It requires **Many CRUDS** managed by the admin in order to power the main end-user functionality. You don't want to spend **Days or even Months** writing boilerplate code for all the CRUDs.
|
11 | 12 | If that is you, this package comes to your rescue. Just follow these simple steps:
|
12 | 13 |
|
13 | 14 | * Generate a Migration for your CRUD table, e.g articles, and run `php artisan migrate` (About **2 minutes**)
|
14 | 15 | * With this package, just run `php artisan jig:generate articles` (About **3 seconds!!!**)
|
15 | 16 | * Build your css and javascript (About **27 seconds**)
|
16 |
| - |
17 | 17 | DONE! In about **2 and a half minutes**, you get a fully working module consisting of -:
|
18 | 18 | - Model
|
19 | 19 | - Admin Controller - Index, Create, Show, Edit, Store, Update, Delete
|
@@ -148,12 +148,13 @@ NB: If you had already separately published laravel-permission's migrations, the
|
148 | 148 | ```
|
149 | 149 | ## Usage
|
150 | 150 | The hard part is over. This is the easy part.
|
151 |
| -##Prepare: |
152 |
| -### General Steps: |
| 151 | +### General Steps to generate a CRUD: |
| 152 | + |
| 153 | +1. Generate and write a migration for your table with `php artisan make:migration` command. |
| 154 | +2. Run the migration to the database with `php artisan migrate` command |
| 155 | +3. Generate the Whole Admin Scaffold for the module with `php artisan jig:generate` command |
| 156 | +4. Modify and customize the generated code to suit your specific requirements if necessary. |
153 | 157 |
|
154 |
| -2. Generate and write a migration for your table with `php artisan make:migration` command. |
155 |
| -3. Run the migration to the database with `php artisan migrate` command |
156 |
| -4. Generate the Whole Admin Scaffold for the module with `php artisan jig:generate` command |
157 | 158 | ### Example
|
158 | 159 | Assuming you want to generate a `books` table:
|
159 | 160 | ```shell
|
|
0 commit comments