Posts by luuckx2 • 31 points
2 posts
-
2
votes2
answers7222
viewsA: How to pass a variable to Blade?
You can also use Compact ex: public function edit($id) { $categorias = Categorias::all(); $posts = Posts::all(); return view('edit')->with(compact('categorias','posts')); } and in your Voce view…
-
1
votes1
answer164
viewsA: Search in mysql by Javascript
Friend, I don’t understand why you make a LIST to do this check. You could do a query similar to this. $cpfduplicado = UsuarioEsic::where('cpf', $request->cpf)->get(); Thus only returns the…