app/Http/Controllers/MembersController.php
/**
     * Show the form for editing the specified resource.
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit()
    {
        $user_id = auth()->user()->id;
        $member = Member::findOrFail($user_id);
        $status = Agreement::where('user_id',$user_id)->get();
        return view('forms.infoEdit',compact('member','status'));
    }
public function edit ( ) { $ user_id = auth ( ) -> user ( ) -> id ; $ member = Member :: findOrFail ( $ user_id ) ; $ status = Agreement :: where ( 'user_id' , $ user_id ) -> get ( ) ; return view ( 'forms.infoEdit' , compact ( 'member' , 'status' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .