Answer the question
In order to leave comments, you need to log in
Back button refresh page Laravel 5.3?
Here is the button code
<a href="{{ URL::previous() }}" class="btn btn-default">BACK</a>
public function addComment(Request $request, $product){
$product = Product::find($product);
$product->addComment(
new Comment($request->all())
);
return back();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question