grgbikash05
1 year ago

is this documentation is wrong????

Posted 1 year ago by grgbikash05

I returned in the first controller like this

return redirect()->route('questions', ['id' => $id]);

and I get the route

http://127.0.0.1:8000/questions/3

In my web.php all routes

Route::get('/', function () {
        return view('index');
});

Route::post('/submit_survey', '[email protected]')->name('submit_survey');

Route::get('/submit_survey', '[email protected]')->name('submit_survey');

Route::post('/submit_categories', '[email protected]')->name('submit_categories');

Route::get('/submit_categories', '[email protected]')->name('submit_categories');

Route::get('/questions/{$id}', '[email protected]')->name('questions');

Route::post('/submit_no_of_questions', '[email protected]')->name('submit_no_of_questions');

Route::get('/submit_no_of_questions', '[email protected]')->name('submit_no_of_questions');

Auth::routes();

Route::get('/home', '[email protected]')->name('home');

in my questionscontroller

public function id($id) {
        echo $id;
 }

But iam getting page not found..

Please sign in or create an account to participate in this conversation.