From 13ed0a56e6e6e45196652c0be2623f15401051ab Mon Sep 17 00:00:00 2001 From: "Md. Touhidur Rahman" Date: Thu, 14 Oct 2021 12:58:29 +0600 Subject: [PATCH] wip --- CHANGELOG.md | 2 +- README.md | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2b37b1..4422288 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,5 +3,5 @@ All notable changes to this project will be documented in this file. ## [Unreleased] -## [1.0.0] - 2021-90-13 +## [1.0.0] - 2021-10-13 - Initial release \ No newline at end of file diff --git a/README.md b/README.md index 88fce3f..7dfde0f 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,14 @@ To publish the config file: php artisan vendor:publish --provider="Touhidurabir\ModelSoftCascade\ModelSoftCascadeServiceProvider" --tag=config ``` -## Usage +## Configurations The config file **soft-cascade** file contains most of the basic configurations details like for which delete or restore event, it will invoke the cascading functionality, should the cascading run as database transactional operation, how it will behave when models get force deleted etc . For full details check the config file . +> Note that eveen though these configurations are set as global for all models, it is possible to oberride them for model specific way . Check the Usage section to know how to have specific configurations for specific model while maintaining the global configurations. + +## Usage + To use this, simply use the trait **HasSoftCascade** in model and implement the abstract method **cascadable** which will return an **array** . ```php