My current url I'm on is localhost/test/1
When I click on save button, it's going to call a rest service test/{id}/createNewTest. How do I get the {id} in the controller? Right now it's getting nothing.
Routes
Route::post('test/{id}/createNewTest', 'TestController@createNewTest');
Controller
public function createNewTest() {
$id = Request::input('id');
}
the $id is suppose to be 1 here, but it's getting nothing