πRoute
Using
php artisan vilt:routeclass CustomRoute extends Routes
{
public function setup(): void
{
$this->name('custom');
$this->type('post');
$this->method('customMethod');
$this->controller(CustomResource::class);
$this->path('custom');
}
}public function components(): array {
return [
Component::make(CustomRoute::class)->route()
];
} Last updated