Skip to content

Commit

Permalink
Merge branch 'main' of github.com:inmanturbo/modelware
Browse files Browse the repository at this point in the history
  • Loading branch information
inmanturbo committed Aug 9, 2024
2 parents 5b004f1 + 59f68c6 commit 91d44bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Changelog

All notable changes to `modelware` will be documented in this file.

## v1.0.0 - 2024-08-08

**Full Changelog**: https://github.com/inmanturbo/modelware/commits/v1.0.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ Add modelware in the boot method of a service provider
```php
use Inmanturbo\Modelware\Facades\Modelware;

Modelware::add(('eloquent.updating*', [
Modelware::add('eloquent.updating*', [
EnsureModelShouldBeSaved::class,
ValidateAttributes::class,
FillModel::class,
], prefix: 'modelware'); // modelware is the default
```

This package sends the event data through pilelines (similiar to middleware), which iterate through collections of invokable classes, these collections are bound into and resolved from the service container using the following syntax:
This package sends the event data through [pipelines](https://laravel.com/docs/11.x/helpers#pipeline) (similiar to middleware), which iterate through collections of invokable classes, these collections are bound into and resolved from the service container using the following syntax:

```php
app()->bind("{$prefix}.{$event}", function () use ($pipes) {
Expand Down

0 comments on commit 91d44bd

Please sign in to comment.