Skip to content

Commit 6a9e17c

Browse files
committed
Updating readme.
1 parent 56bd91c commit 6a9e17c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,16 @@ It works based on your `$fillable` property of the target model.
1010
If you would like to use `$guarded` instead of `$fillable`, It is supported too.
1111
In that case you'll need to have an existing `Schema` (table), Then the crud generator will autimatically figures out your fillables.
1212

13+
As an example when `$fillables` is available:
14+
15+
`$ php artisan make:crud UserController --model=User --validation`
1316

1417
![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.

0 commit comments

Comments
 (0)