How stop execution in trait php with return in Laravel
I have the next code of my trait. trait ObraTrait { public function custo(Request $request) { $custo = array_sum($request->custo); if ($custo != 100.00) { return back()->withInput()->with( 'danger','Custo equal to 100.00%' ); } } } and my controller public function update(UpdateObra…