Skip to content

Commit

Permalink
🚑 switched to static methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Nov 7, 2021
1 parent 03c08ab commit 9d0251b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function autoConnect(): void
*/
public static function login(string $table, array $credentials, array $validate = [])
{
return new Auth\Login($table, $credentials, $validate);
return Auth\Login::user($table, $credentials, $validate);
}

/**
Expand All @@ -63,7 +63,7 @@ public static function login(string $table, array $credentials, array $validate
*/
public static function register(string $table, array $credentials, array $uniques = [], array $validate = [])
{
return new Auth\Register($table, $credentials, $uniques, $validate);
return Auth\Register::user($table, $credentials, $uniques, $validate);
}

/**
Expand Down

0 comments on commit 9d0251b

Please sign in to comment.