ErrorException in Arr.php line 351:
array_flip(): Can only flip STRING and INTEGER values!
in Arr.php line 351
at HandleExceptions->handleError('2', 'array_flip(): Can only flip STRING and INTEGER values!', 'C:\wamp\www\still-reaches-22650\vendor\laravel\framework\src\Illuminate\Support\Arr.php', '351', array('array' => array('account_id' => '1'), 'keys' => array(null)))
at array_flip(array(null)) in Arr.php line 351
at Arr::only(array('account_id' => '1'), array(null)) in Collection.php line 652
at Collection->only(null) in TenantManager.php line 177
at TenantManager->modelTenants(object(Client)) in TenantManager.php line 106
at TenantManager->applyTenantScopes(object(Client)) in BelongsToTenants.php line 29
at Client::bootBelongsToTenants()
at forward_static_call(array('App\Client', 'bootBelongsToTenants')) in Model.php line 330
at Model::bootTraits() in Model.php line 316
at Model::boot() in Model.php line 303
at Model->bootIfNotBooted() in Model.php line 284
at Model->__construct() in Model.php line 647
at Model::all() in HomeController.php line 35
at HomeController->index()
I'm using laravel 5.3 :
ErrorException in Arr.php line 351: array_flip(): Can only flip STRING and INTEGER values!
in Arr.php line 351 at HandleExceptions->handleError('2', 'array_flip(): Can only flip STRING and INTEGER values!', 'C:\wamp\www\still-reaches-22650\vendor\laravel\framework\src\Illuminate\Support\Arr.php', '351', array('array' => array('account_id' => '1'), 'keys' => array(null))) at array_flip(array(null)) in Arr.php line 351 at Arr::only(array('account_id' => '1'), array(null)) in Collection.php line 652 at Collection->only(null) in TenantManager.php line 177 at TenantManager->modelTenants(object(Client)) in TenantManager.php line 106 at TenantManager->applyTenantScopes(object(Client)) in BelongsToTenants.php line 29 at Client::bootBelongsToTenants() at forward_static_call(array('App\Client', 'bootBelongsToTenants')) in Model.php line 330 at Model::bootTraits() in Model.php line 316 at Model::boot() in Model.php line 303 at Model->bootIfNotBooted() in Model.php line 284 at Model->__construct() in Model.php line 647 at Model::all() in HomeController.php line 35 at HomeController->index()
... and so on