Skip to content

Bug report: issue when using Auth custom driver #57088

@noefleury

Description

@noefleury

Laravel Version

12.29.0

PHP Version

8.4

Database Driver & Version

No response

Description

The following error is triggered :

Auth driver ['my-driver'] for guard [api] is not defined.

Steps To Reproduce

On projects using new slim skeleton (L11), there is an issue when adding our own auth driver like that : Auth::extend('my-driver').

Then when running these commands, it's broken :

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

In AuthManager.php line 98:
`Auth driver ['my-driver'] for guard [api] is not defined.`

Still not found how to reproduce 100% of the time in local, but it's occurring in CI.

Notes

After some investigation, I've realized this is somehow linked to the new requirement from Laravel 12.29.0 which is "phiki/phiki": "v2.0.0" added by this PR : #57036

It is possible to reproduce the issue on older Laravel versions just by running : composer require phiki/phiki.

I still don't found what is the issue, but when I'll have time I will create a demo repository.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions