From 7c0078128f91df6f76f9008d18520d3574f1f32d Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Mon, 2 May 2016 17:44:24 +0200 Subject: [PATCH] Issue #113 try to fix the expect array not null exception --- src/Notifynder/NotifynderServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notifynder/NotifynderServiceProvider.php b/src/Notifynder/NotifynderServiceProvider.php index 61db464..e966239 100755 --- a/src/Notifynder/NotifynderServiceProvider.php +++ b/src/Notifynder/NotifynderServiceProvider.php @@ -126,7 +126,7 @@ protected function notifications() // Inject configs when model is resolved $this->app->resolving(Notification::class, function (Notification $object, $app) { - $fillable = $app['config']->get('notifynder.additional_fields.fillable'); + $fillable = $app['config']->get('notifynder.additional_fields.fillable', []); $object->fillable(array_merge($object->getFillable(),$fillable)); });