My app in showing this error "Action App\Http\Controllers\ComplainController@comment not defined. (View: /var/www/html/Chirag_Laravel/resources/views/backend/pages/ifa/complaint.blade.php)" But i have already entered the controller and the route funtions properly
Controller part:
public function comment($id,Request $request)
{
$user_name=$request->session()->get('user_name');
$ticket=Complaint::Where('id','=',$id)
->SELECT('ticket_no')
->get();
foreach($ticket as $tickets)
{
$tik=$tickets['ticket_no'];
$comments=\DB::SELECT('SELECT comment,comment_by from comments where complaint_id=? AND comment_by=? or comment_by=? ORDER BY id DESC',[$tik,$user_name,'Admin']);
return view('backend.pages.ifa.comment',compact('tik','id','comments','user_name'));
}
}
public function getComment(Request $request)
{
$request->session()->put(['comment_success'=>'Comment Submitted Successfully']);
$report_id=$request->session()->get('report_id');
$complain=$request->get('tiko');
$user_name=$request->get('user_name');
$comment=$request->get('comment');
//echo $complain_id."<br>".$comment;
Comment::create(["complaint_id"=>"$complain","comment"=>"$comment","comment_by"=>"Bill"]);
return redirect()->back();
}
Route part:
Route::get('ifa-dashboard/comment/{id}',['uses'=>'ComplainController@comment']);
Route::POST('ifa-dashboard/getComment',['uses'=>'ComplainController@getComment']);
Blade part:
<td><center><a href="">Comment</a></center></td>
Cant find a way out
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/31ctvUk
via IFTTT
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include
RépondreSupprimerسایت پوکر خارجی
We run a community that promotes massage and leaves reviews, so why don't you come in and take a look?
RépondreSupprimerรีวิวufa800
Consequently, starting in the amount of electronic marketing strategy, is whenever a company's existing website, which will be to review the present site and its purpose is to improve the potency of the future. There is no evidence that the development and implementation of a method to be significantly different way of electronic marketing. Strategic planning for enterprise development or strategic marketing to comply with the established framework should still beรีวิวufa800
RépondreSupprimerI am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job!
RépondreSupprimerwww.ufa365.info
We run a community that promotes massage and leaves reviews, so why don't you come in and take a look? แทงบอลลาลีกา
RépondreSupprimerPositive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include
RépondreSupprimerแทงบอลไม่มีขั้นต่ำ
It turns out that even the hottest port has a few places where you can get off the beaten path. Here are some recommendations that will make you feel like you're in the know
RépondreSupprimerรีวิวufa365