Posts by Hsf_Scientist • 11 points
2 posts
-
0
votes2
answers296
viewsA: Bring data and save to a variable in Controller - Laravel API
I think if you only want a few fields, it would be better to select only by the desired fields: $query->select('nomeprofessor'); $professores = $query->get();…
-
1
votes2
answers2002
viewsA: Laravel 5.3 - How to change a logged-in user’s password?
Using Hash::check as you used, it served me. public function updateOwn(Request $request, $id) { $input = $request->all(); if (! Hash::check($input['password_old'],Auth::user()->password)){…