Answer the question
In order to leave comments, you need to log in
Why is laravel not returning view?
Good afternoon.
There is a form that sends us to the controller, in the controller the function is divided into two parts
a) if the button "a"
is pressed b) if the button "b" is pressed
public function fun(Request $request)
{
if($request->input('a') {
............
...........
$array = [1,2,3]
return view('view', [ 'arr' => $array]);
}
elseif($request->input('b') {
.......
}
}
if($request->input('a') {
$this->a();
}
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