app/Http/Controllers/KaryawanController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $karyawans = karyawan::paginate(10);
        $wilayahs = wilayah::all();
        $units = unit_kerja::all();
        return view('admin.karyawan.index',compact('karyawans','wilayahs','units'));
    }
public function index ( ) { $ karyawans = karyawan :: paginate ( 10 ) ; $ wilayahs = wilayah :: all ( ) ; $ units = unit_kerja :: all ( ) ; return view ( 'admin.karyawan.index' , compact ( 'karyawans' , 'wilayahs' , 'units' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .