Then in your routes you can register a route with this name.
Route::get(...)->name('web.salesforce.callback');
The advantage of this is being able to dynamically calculate the callback URI, instead of having to create new SALESFORCE_CALLBACK_URI values for every environment.
Instead of providing a static callback URI in the config, it would be nice to calculate this value dynamically based on a route name:
So instead of:
you could do this instead:
Then in your routes you can register a route with this name.
The advantage of this is being able to dynamically calculate the callback URI, instead of having to create new
SALESFORCE_CALLBACK_URI
values for every environment.