Skip to content

Commit

Permalink
Add empty locale extender to clear cache properly on enable/disable.
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Jun 20, 2020
1 parent 18681e5 commit f080bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
(new Extend\Model(Post::class))
->belongsToMany('likes', User::class, 'post_likes', 'post_id', 'user_id'),

new Extend\Locales(__DIR__ . '/locale'),

function (Dispatcher $events) {
$events->subscribe(Listener\AddPostLikesRelationship::class);
$events->subscribe(Listener\SaveLikesToDatabase::class);
Expand Down
Empty file added locale/.gitkeep
Empty file.

0 comments on commit f080bd5

Please sign in to comment.