Trying to work out if the following is possible:
I understand you can echo data in a blade via {{ Auth::user()->email }} to get email, {{ Auth::user()->name }} to get name, {{Auth::user()->id }} to get user ID etc.. and this is for the current logged in user.
But what i am trying to achieve is, if i type in a 'name' into a text field in a basic one field form, is there any way that i can have it dynamically show an echo of that 'name' related users ID, even though it is not that of the Auth::User ?
For Example: User ID: 1 with 'name' as ROGERHELLO can type in the 'name' POTATOHEAD and have it echo it's relative ID visible on the page which could be ID: 5?
I have searched about but cant seem to find a clear answer.. and hopefully this post can help others with a similar query in the future..
Thank you for any help!