Category : cmd

i am run this command for model, migration, resource controller. php artisan make:model QuestionAnswer -mc -r .. My Edit Function public function edit(QuestionAnswer $questionAnswer) { // return $questionAnswer; return view(‘backend.faq.edit’,get_defined_vars()); } Route one {{route(‘admin.faq.edit’,$questionAnswer->id)}} Route two Route::resource(‘question-answer’,’QuestionAnswerController’); in Edit function for Route one : $questionAnswer object return null. but for Route two : $questionAnswer return ..

Read more

I am running this command for model, migration, resource controller. `php artisan make:model QuestionAnswer -mc -r` .. My Edit Function public function edit(QuestionAnswer $questionAnswer) { // return $questionAnswer; return view(‘backend.faq.edit’,get_defined_vars()); } Route one in web.php : Route::resource(‘faq’,’QuestionAnswerController’); in view : {{route(‘admin.faq.edit’,$questionAnswer->id)}} Route two in web.php : Route::resource(‘question-answer’,’QuestionAnswerController’); in view {{route(‘admin.question-answer.edit’,$questionAnswer->id)}} in Edit function for Route ..

Read more

I start installing laravel for the first time , so I follow these steps: Installing latest version of wampserver. Installing composer in C:wamp64binphpphp7.3.21. Runninig these commands below into cmd: _cd c:wamp24www _composer create-project laravel/laravel laraveltest but unfortunetly the installation hadn’t gone well, so I got this error: 71 package suggestions were added by new dependencies, ..

Read more

I start installing laravel for the first time , so I follow these steps: Installing latest version of wampserver. Installing composer in C:wamp64binphpphp7.3.21. Runninig these commands below into cmd: _cd c:wamp24www _composer create-project laravel/laravel laraveltest but unfortunetly the installation hadn’t gone well, so I got this error: and then whenever I try to access to ..

Read more