Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 3c6e068

Browse files
committed
Fixed createModel method
1 parent 22d8912 commit 3c6e068

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Middleware/WindowsAuthenticate.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public function handle(Request $request, Closure $next)
8585
*/
8686
public function createModel()
8787
{
88-
$this->auth->model();
88+
$model = $this->auth->getProvider()->getModel();
89+
90+
return new $model;
8991
}
9092

9193
/**

0 commit comments

Comments
 (0)