skipperbent / simple-php-router

Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
647 stars 121 forks source link

Nested Resource routes #673

Open benfiratkaya opened 1 year ago

benfiratkaya commented 1 year ago

I want to create nested resource routes. But I get route not found error. Can you add this feature like laravel?

Router::resource('/tickets', TicketController::class)->name('support.tickets');
Router::resource('/tickets/{ticketID}/messages', TicketMessageController::class)->name('support.tickets.messages');

https://laravel.com/docs/10.x/controllers#restful-nested-resources

skipperbent commented 1 year ago

Thanks for the tip - we need this feature as well, i will look into it and report back :)