DEV Community

Discussion on: How will I identify resource default url in laravel?

Collapse
 
abdullahalnoor profile image
Md Abdullah al noor • Edited

After running auth command I find all route list … route:list by this command..
But after running this command php artisan make:model QuestionAnswer -mc -r I did not find QuestionAnswer model route list …
if i write in web.php this line Route::resource('question-answer','QuestionAnswerController'); everythink is okay but if I write in web.php : Route::resource('faq','QuestionAnswerController'); i need to change in edit function variable($faq) .

How will I know I need to write Route::resource('question-answer','QuestionAnswerController'); ?
how i will identify resource default url in laravel ?