Skip to content

Commit d6ccbc2

Browse files
authored
Fixed typo #120
1 parent 169730e commit d6ccbc2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,16 @@ $relations = FollowRelation::popular(App\Post::class)->paginate(15);
296296

297297
### Events
298298

299-
- `Overtrue\LaravelFollow\RelationAttaching`
300-
- `Overtrue\LaravelFollow\RelationAttached`
301-
- `Overtrue\LaravelFollow\RelationDetaching`
302-
- `Overtrue\LaravelFollow\RelationDetached`
303-
- `Overtrue\LaravelFollow\RelationToggling`
304-
- `Overtrue\LaravelFollow\RelationToggled`
299+
- `Overtrue\LaravelFollow\Events\RelationAttaching`
300+
- `Overtrue\LaravelFollow\Events\RelationAttached`
301+
- `Overtrue\LaravelFollow\Events\RelationDetaching`
302+
- `Overtrue\LaravelFollow\Events\RelationDetached`
303+
- `Overtrue\LaravelFollow\Events\RelationToggling`
304+
- `Overtrue\LaravelFollow\Events\RelationToggled`
305305

306306

307307
```php
308-
Event::listen(\Overtrue\LaravelFollow\RelationAttached::class, function($event) {
308+
Event::listen(\Overtrue\LaravelFollow\Events\RelationAttached::class, function($event) {
309309
// $event->causer;
310310
// $event->getTargetsCollection();
311311
// $event->getRelationType();
@@ -314,7 +314,7 @@ Event::listen(\Overtrue\LaravelFollow\RelationAttached::class, function($event)
314314

315315
# About toggled event.
316316

317-
There has a extra properties for `Overtrue\LaravelFollow\RelationToggled` event.
317+
There has a extra properties for `Overtrue\LaravelFollow\Events\RelationToggled` event.
318318

319319
```php
320320
$event->results; // ['attached' => [1, 2, 3], 'detached' => [5, 6]]

0 commit comments

Comments
 (0)