From 0556252d6904cf6cde8ced83709af733f0298650 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Wed, 27 Jan 2021 10:56:15 +0800 Subject: [PATCH] Update readme.md file --- readme.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2c2f449..45c5b0d 100644 --- a/readme.md +++ b/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: ```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. @@ -242,6 +242,18 @@ return [
+## 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. + +
+ ## Attention - The package will creates the **Model** class file, the command will stop if the **Model already exists**.