ExportPaths
Define export paths to route controller methods that have parameters
Pass a Class or array directly to the attribute
use Capo\Attributes\ExportPaths;
class SomeController
{
#[ExportPaths(SomeClassWithPathsMethod::class)]
public function show(string $name)
{}
}
class SomeClassWithPathsMethod
{
public function paths(): array
{
return [
'path1',
'path2',
];
}
}