authentication via username or phones

This commit is contained in:
2024-09-18 17:43:33 +05:00
parent e95797bb97
commit c086feb6c0
10 changed files with 78 additions and 25 deletions

View File

@@ -16,7 +16,7 @@ class LoanOrderController extends Controller
public function index(Request $request)
{
return response()->json(LoanOrderIndexResource::collection(
LoanOrder::query()->paginate()
LoanOrder::query()->where('user_id', auth()->id())->paginate()
));
}