afoysal
1 month ago
266
5
Laravel

Query not meeting requirement

Posted 1 month ago by afoysal

My Query is like below

$addressess = Address::where('first_name', 'LIKE', $request->letter.'%')->where('user_id', Auth::id())->get();

My Table is like below

Table

My result is like below

Result

Why I am not getting all the records of user_id 1 ?

I am getting 1 record less.

Please sign in or create an account to participate in this conversation.