Skip to content

Commit 177a63e

Browse files
authored
Update README.md
instructions for customizing views.
1 parent 4812eb3 commit 177a63e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ php artisan make:crud {table_name} --route={route_name}
114114
![Form](https://i.imgur.com/poRiZRO.png)
115115

116116

117+
## Personalize
118+
You have the possibility of 100% customizing the generated views, this is achieved in the following way:
119+
1. - Run this command `php artisan vendor:publish --tag=crud` this will create the `crud.php` file in your config/ folder.
120+
2. - Update the variable `stub_path`, to your own stub folder like `'stub_path' => resource_path('stubs/'),`
121+
3. - Copy the files from my package stubs folder to your own folder from [Here](https://github.com/awais-vteams/laravel-crud-generator/tree/master/src/stubs)
122+
4. - Update your changes. You can delete extra files/folders like api or livewire folder if you are not using it.
123+
5. - Run the command for crud `php artisan make:crud NameCrud` generation and you'll get the updated views.
124+
125+
126+
127+
128+
117129
## Author
118130

119131
M Awais // [Email Me](mailto:[email protected])

0 commit comments

Comments
 (0)