Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Oct 14, 2021
1 parent a878297 commit 13ed0a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13ed0a5

Please sign in to comment.