mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix class Passport not found
This commit is contained in:
@@ -12,7 +12,6 @@ use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use Laravel\Passport\Passport;
|
||||
use Nexus\Nexus;
|
||||
use Filament\Facades\Filament;
|
||||
use NexusPlugin\Menu\Filament\MenuItemResource;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -23,7 +22,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
Passport::ignoreMigrations();
|
||||
if (class_exists(Passport::class)) {
|
||||
Passport::ignoreMigrations();
|
||||
}
|
||||
do_action('nexus_register');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user