Skip to content

Commit

Permalink
fix AuthServiceProvider Passport not found
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Aug 8, 2024
1 parent 6894508 commit 315ae80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class AuthServiceProvider extends ServiceProvider
public function boot()
{
$this->registerPolicies();
Passport::useClientModel(OauthClient::class);
if (class_exists(Passport::class)) {
Passport::useClientModel(OauthClient::class);
}

Auth::viaRequest('nexus-cookie', function (Request $request) {
return $this->getUserByCookie($request->cookie());
Expand Down
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.13');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-08-08');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-08-09');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down

0 comments on commit 315ae80

Please sign in to comment.