1
I need to select to return all users who have the initials of a name.
Example:
I type in my search input field: "paulo" returns to me all users who have this word.
I did some research and used it:
$usuarios = User::where('nome', 'LIKE', $search. '%')
->paginate();
return view('auth.adm.lista', compact( 'usuarios', 'title'));
This code returns me 15 users.
But if I go to PHPMYADMIN and type this sql:
SELECT * FROM `users` WHERE nome LIKE 'paulo%'
The above row returns 44 users.
Where can I be wrong that ends up limiting to 15 the search in Laravel ?