Normally in Laravel you get a request bag with all parameters in it. But in a service provider this is not the case. But we do have the request()
object.
However, this does not contain the url parameters given in the resource routing.
So what I'm looking for is a way to retrieve the {id} from the route.
I have tried:
request()->route('id')
Route::get('id')
Request::get('id')
All of these return null