Skip to content

Commit

Permalink
fix class Passport not found
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Apr 18, 2024
1 parent 9ccb67d commit 3711221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Laravel\Passport\Passport;
use Nexus\Nexus;
use Filament\Facades\Filament;
use NexusPlugin\Menu\Filament\MenuItemResource;

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -23,7 +22,9 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
Passport::ignoreMigrations();
if (class_exists(Passport::class)) {
Passport::ignoreMigrations();
}
do_action('nexus_register');
}

Expand Down

0 comments on commit 3711221

Please sign in to comment.