joelbutcher / socialstream

OAuth for Laravel, simplified.

Home Page:https://docs.socialstream.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2 routes are named oauth.callback

chris-sev opened this issue · comments

Describe the bug
I'm unable to run php artisan route:cache because there are 2 routes with the name oauth.callback

I believe it happened in this commit yesterday:

https://github.com/joelbutcher/socialstream/blob/4.x/routes/socialstream.php#L13-L14

Both the Route::get and Route::post are named oauth.callback

To Reproduce
Steps to reproduce the behavior:

  1. Run php artisan route:cache

Expected behavior
Caching works

Screenshots
CleanShot 2023-09-13 at 07 12 12@2x

Environment context

  • Socialstream version: 4.4.3
  • Jetstream stack: Inertia / Livewire
  • Laravel version: 10
  • PHP version: 8.2

Thanks! I've patched with v4.4.4

Hi @joelbutcher,

After updating to Socialstream v5.2, the php artisan route:cache still fails due to duplicate route names for oauth.callback.

Environment:

Socialstream v5.2
Laravel v10
PHP v8.2

@neopheus can you test the changes made in this PR to see if this resolves the issue for you?

Yes
You can validate the PR