Posts by avelar • 19 points
2 posts
-
1
votes0
answers30
viewsQ: use Filter to bring Null andNon-@CAP_FIRST$null data to select
Controller: public function get(Request $request, Funcionario $funcionarios) { if ($funcionarios->id) { return response()->json(['data' =$funcionarios->toArray()]); } $rules = [ 'nome'…
-
-1
votes2
answers296
viewsQ: Bring data and save to a variable in Controller - Laravel API
public function getListaPresencial(Request $request, Presencial $Presencial) { if ($Presencial->id) { return response()->json(['data' => $Presencial->toArray()]); } $query =…