File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,16 @@ It works based on your `$fillable` property of the target model.
10
10
If you would like to use ` $guarded ` instead of ` $fillable ` , It is supported too.
11
11
In that case you'll need to have an existing ` Schema ` (table), Then the crud generator will autimatically figures out your fillables.
12
12
13
+ As an example when ` $fillables ` is available:
14
+
15
+ ` $ php artisan make:crud UserController --model=User --validation `
13
16
14
17
![ laravel-crud-generator] ( https://user-images.githubusercontent.com/31504728/92512225-b99be400-f223-11ea-84ba-bbfb55d1babd.gif )
18
+
19
+ #### Customizing Stubs
20
+ You can modify default stubs by publishing them:
21
+
22
+ ` $ php artisan crud:publish `
23
+
24
+ The published stubs will be located within ` stubs/crud ` directory in the root of your application.
25
+ Any changes you make to these stubs will be reflected when you generate crud.
You can’t perform that action at this time.
0 commit comments