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 ?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 findQuestionAnswer
model route list …if i write in
web.php
this lineRoute::resource('question-answer','QuestionAnswerController');
everythink is okay but if I write inweb.php
:Route::resource('faq','QuestionAnswerController');
i need to change inedit 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 ?