From 4031b0b0052d08fff699dba01dd346db0ff28c41 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Wed, 27 Jan 2021 10:59:34 +0800 Subject: [PATCH] Update readme.md for for publishing stub files --- readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/readme.md b/readme.md index 78232ce..690bba9 100644 --- a/readme.md +++ b/readme.md @@ -254,6 +254,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**.