Browse Source

Update readme.md file

pull/31/head
Nafies Luthfi 5 years ago
parent
commit
0556252d69
  1. 14
      readme.md

14
readme.md

@ -218,7 +218,7 @@ The generated functional tests will give you examples of how to adapt this code
You can configure your own by publishing the config file: You can configure your own by publishing the config file:
```bash ```bash
$ php artisan vendor:publish --provider="Luthfi\CrudGenerator\ServiceProvider"
$ php artisan vendor:publish --provider="Luthfi\CrudGenerator\ServiceProvider" --tag=config
``` ```
That will generate `config/simple-crud.php` file. That will generate `config/simple-crud.php` file.
@ -242,6 +242,18 @@ return [
<br> <br>
## Publishing Stub Files
Stub files is the templates which we use to generate the code for each model classes and files. We can customize the stub files as we needed by publishing them to our project directory.
```bash
$ php artisan vendor:publish --provider="Luthfi\CrudGenerator\ServiceProvider" --tag=stubs
```
That will generate stub files on `stubs/simple-crud` directory. Now we can change some stub files based on our project needs.
<br>
## Attention ## Attention
- The package will creates the **Model** class file, the command will stop if the **Model already exists**. - The package will creates the **Model** class file, the command will stop if the **Model already exists**.

Loading…
Cancel
Save