Skip to content

Commit 0113a10

Browse files
authored
updated README.md
Personalize views and stubs
1 parent 177a63e commit 0113a10

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,16 @@ php artisan make:crud {table_name} --route={route_name}
115115

116116

117117
## 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.
118+
You have the possibility of 100% customizing the generated views, this is achieved in the following way:
119+
120+
- Run this command `php artisan vendor:publish --tag=crud` this will create the `crud.php` file in your config/ folder.
121+
- Update the variable `stub_path`, to your own stub folder like `'stub_path' => resource_path('stubs/'),`
122+
- Copy the stubs files from package
123+
```
124+
php artisan vendor:publish --tag=stubs-crud
125+
```
126+
- Update your changes in your stub files. (you can delete extra files/folders if you are not using them).
127+
- Run the command for crud generation and you'll get the updated views.
124128

125129

126130

0 commit comments

Comments
 (0)