You can’t return view twice, so change it it:
return view('welcome', ['zzz' => $max, 'any' => $whatstock]);
Or:
return view('welcome')->with('zzz', $max)->with('any', $whatstock);
solved Laravel basic Database ‘with’ function [closed]
You can’t return view twice, so change it it:
return view('welcome', ['zzz' => $max, 'any' => $whatstock]);
Or:
return view('welcome')->with('zzz', $max)->with('any', $whatstock);
solved Laravel basic Database ‘with’ function [closed]