diff --git a/config/ide-helper.php b/config/ide-helper.php index 906f30c..59e5da4 100644 --- a/config/ide-helper.php +++ b/config/ide-helper.php @@ -83,7 +83,7 @@ return array( */ 'interfaces' => array( - '\Illuminate\Contracts\Auth\Authenticatable' => config('auth.model', 'App\User'), + ), /* diff --git a/src/Generator.php b/src/Generator.php index 4958c42..b73881a 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -113,6 +113,8 @@ class Generator protected function detectDrivers() { + $this->interfaces['\Illuminate\Contracts\Auth\Authenticatable'] = config('auth.model', 'App\User'); + try{ if (class_exists('Auth') && is_a('Auth', '\Illuminate\Support\Facades\Auth', true)) { $class = get_class(\Auth::driver());