Ejemplo n.º 1
0
 /**
  * Remove the specified unitkerja from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Unitkerja::destroy($id);
     return Redirect::route('admin.unitkerja.index')->with("successMessage", "Unit kerja berhasil dihapus. ");
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $data = array('field' => Unitkerja::getColumn(), 'values' => UnitKerja::orderBy('nama_unit_kerja')->get());
     return Response::json($data);
 }