12
12
13
13
14
14
15
- Please see the [ ** full documentation here** ] ( https://san-kumar.github.io/laravel-crud/ ) .
15
+ > ## Please see the [ ** full documentation here** ] ( https://san-kumar.github.io/laravel-crud/ ) .
16
16
17
17
18
18
This package adds a ** crud: generate ** command to Artisan in
@@ -37,44 +37,52 @@ Laravel crud can generate nested CRUDs. For example, you can
37
37
generate a CRUD for customers > tickets > replies by simply
38
38
running:
39
39
40
+ ``` bash
41
+ $ php artisan crud:generate customers.tickets.replies
42
+ ```
43
+
40
44
#### Table layout
41
45
42
46
> ![ Table index] ( https://cdn.articlevideorobot.com/hosted/22-12-2022/image-2-dbed.webp )
43
47
> (Automatically generated index page with responsive table
44
48
> layout)
45
49
46
- ``` bash
47
- $ php artisan crud:generate customers.tickets.replies
48
- ```
49
-
50
- ## Template based
51
-
52
50
The generated views are fully customizable and template
53
51
based. For example, you can change the look of the index
54
52
page by using different templates like table, cards or
55
53
chat (included in the package).
56
54
57
55
#### Card layout
58
56
59
- > ![ Card layout] ( https://cdn.articlevideorobot.com/hosted/22-12-2022/selection-303-4a64.webp )
60
- > (Card layout)
61
-
62
57
``` bash
63
58
$ php artisan crud:generate customers.tickets.replies -i cards
64
59
```
65
60
66
- #### Chat layout
61
+ > ![ Card layout] ( https://cdn.articlevideorobot.com/hosted/22-12-2022/selection-303-4a64.webp )
62
+ > (Card layout)
67
63
68
- > ![ Chat layout] ( https://cdn.articlevideorobot.com/hosted/22-12-2022/selection-304-c429.webp )
69
- > (Chat layout)
64
+ #### Chat layout
70
65
71
66
``` bash
72
67
$ php artisan crud:generate customers.tickets.replies -i chat
73
68
```
74
69
70
+ > ![ Chat layout] ( https://cdn.articlevideorobot.com/hosted/22-12-2022/selection-304-c429.webp )
71
+ > (Chat layout)
72
+
73
+ #### Create / Edit Forms
74
+
75
+ Laravel CRUD generator can automatically generate the FORM
76
+ for creating and editing records. It can also generate the
77
+ validation rules for the form.
78
+
79
+ > ![ Example of generated fields] ( https://cdn.articlevideorobot.com/hosted/22-12-2022/selection-307-f402.webp )
80
+ > (Example of generated fields)
81
+
82
+
75
83
## Heads up!
76
84
77
- The package is still in _ alpha_
85
+ > Warning: The package is still in _ alpha_
78
86
79
87
You should only use it with new projects. If you are using
80
88
it in an existing project, make sure to back up (or commit)
0 commit comments