From 55dfa14f5f5eb58738db74e1ce771ea1d978c7f8 Mon Sep 17 00:00:00 2001 From: titonova <41286822+titonova@users.noreply.github.com> Date: Wed, 29 Jun 2022 18:44:51 +0100 Subject: [PATCH 1/2] Added variable name clarification It confused me for a very long while as I was wondering why renaming $model to $user made it not work --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b7a6367..730f634 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ class AppServiceProvider extends ServiceProvider return $model->posts->count() > 0; }); ``` +**Note: Tho variable name passed to the `completeIf` callback must be `$model`** ### Usage From b85a5c5405796adf93222b5a297d7c39295ba35c Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Thu, 30 Jun 2022 00:09:47 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 730f634..8b82292 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,8 @@ class AppServiceProvider extends ServiceProvider return $model->posts->count() > 0; }); ``` -**Note: Tho variable name passed to the `completeIf` callback must be `$model`** + +The variable name passed to the `completeIf` callback must be `$model`. ### Usage