Say you have an internal session based API on /api in your application, one would need to "log in" when running the command, especially if any of the validation rules use Auth::user().
A small local workaround by adding Auth::loginUsingId($userId) to SwaggerServiceProvider->boot() works, but is not very customizable. Would it be possible to add this as an auth option somehow?
Description:
Say you have an internal session based API on
/api
in your application, one would need to "log in" when running the command, especially if any of the validation rules useAuth::user()
.A small local workaround by adding
Auth::loginUsingId($userId)
toSwaggerServiceProvider->boot()
works, but is not very customizable. Would it be possible to add this as an auth option somehow?