I have a project am working on which has a select form that is working just fine, when you click the select form, it populates the list of users from the database and allows you to choose one user at a time. Now after selecting your user, you will then input a text in an input form below the select form and submit, after the submit button is successful, a code snippet from the controller is executed and here is the code snippet:
$UserInfo = UserInfo::where('user_id','=',Auth::user()->id)->first(); .$UserInfo->title.". ".$UserInfo->first_name." ".$UserInfo->last_name." .$findPin->amounts."".$this->amount()." $useumber = Auth::user()->UserInfo->contact; NOW because of the Auth::user()->id)->first();,
the userinfo first name, last name etc... are executed from the current login user's information on the database, but I want those info to be that of the current selected user from the dropdown list populated from the database not the current logged in user.
