From 7762e07f0aa182fc829eb12dc8cf42aea7d5e19f Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 2 Mar 2016 10:47:25 +0100 Subject: [PATCH] Use new provider config Fixes #274, #324 --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.php b/src/Generator.php index 3ef362c..197debf 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -114,7 +114,7 @@ class Generator protected function detectDrivers() { - $this->interfaces['\Illuminate\Contracts\Auth\Authenticatable'] = config('auth.model', 'App\User'); + $this->interfaces['\Illuminate\Contracts\Auth\Authenticatable'] = config('auth.providers.users.model', config('auth.model', 'App\User')); try{ if (class_exists('Auth') && is_a('Auth', '\Illuminate\Support\Facades\Auth', true)) {