title: How to pluck data for a form
body: <p>I'd like to show names on my select dropdown</p>
  <p>I have 3 tables: 'users','users_pro' and 'practice'</p>
  <blockquote>
  <p><strong>users</strong> : id ,name ,dob ,.. etc</p>
  <p><strong>users_pro</strong> : id ,user_id,..etc</p>
  <p><strong>practice</strong> : id , user_pro_id ,...etc</p>
  </blockquote>
  <p>I want to input data to table 'practice' and I want to make a select dropdown using pluck on <strong>users_pro</strong> with <strong>users</strong> like this :</p>
  <pre><code>public function input_practice()
  {
      $data= Users_pro::with('users')-&gt;get()-&gt;pluck('id','user_id');
      
      dd($data);
      // return view('admin.input.input_riwayat_kgb',
      // [
      // 'data'=&gt;$data,
      
  
      // ]);
  }
  </code></pre>
  <p>If I dd($data), I get :</p>
  <pre><code>    Collection {#327 ▼
    #items: array:4 [▼
      6 =&gt; 3 // 6 is user_id ,and 3 is 'id' on users_pro , i need to show 'name' like 3 =&gt; 'jhon'
      13 =&gt; 4
      12 =&gt; 5
      14 =&gt; 6
    ]
  }
  </code></pre>
  <p>But I want to show the name of the user on my select dropdown.  Can someone help me?</p>