app/Http/Controllers/UserController.php
/**
     * Show the form for creating a new user
     *
     * @return \Illuminate\View\View
     */
Show the form for creating a new user
@return \Illuminate\View\View
Show the form for creating a new user @return \ Illuminate \ View \ View
public function create()
    {
        $kab = Kabupaten::pluck('label', 'kode');
        return view('users.create', compact('kab'));
    }
public function create ( ) { $ kab = Kabupaten :: pluck ( 'label' , 'kode' ) ; return view ( 'users.create' , compact ( 'kab' ) ) ; }
Show the form for creating a new user
 @return \Illuminate\View\View
Show the form for creating a new user @return \ Illuminate \ View \ View
// $kab = Kabupaten::whereNotIn('kode', function ($query) { //     $query->select('id_kab')->from('users'); // })->pluck('label', 'kode'); // dd($kab);