is an API route as follows:
<?php
use Illuminate\Http\Request;
$api = app("Dingo\Api\Routing\Router");
$api->version("v1", [
"namespace" => "App\Http\Controllers\Api"
], function($api) {
//
$api->post("verificationCodes", "VerificationCodesController@store")
->name("api.verificationCodes.store");
});
I don"t understand why each route is followed by a name method: name ("api.verificationCodes.store")
this method is not found in the document
what is the purpose of this? Why are the parameters in parentheses written like this? Where are the detailed documents to interpret?