Looking at the code seems we are only splitting the string on the @ symbol, thus causing the undefined index issue when that @ symbol ins't present when using an __invoke function on a controller as seen here. [$controller, $method] = explode('@', $controllerAction->first());
I've noticed that the following assertion causes a
ErrorException: Undefined offset: 1
$this->assertRouteUsesFormRequest('api.import.csv', ValidateCsvRequest::class);
Looking at the code seems we are only splitting the string on the @ symbol, thus causing the undefined index issue when that @ symbol ins't present when using an __invoke function on a controller as seen here.
[$controller, $method] = explode('@', $controllerAction->first());