/**
  * The attributes excluded from the model's JSON form.
  *
  * @var array
  */
 public function getNamaHukumanAttribute()
 {
     $name = $this->attributes['id_master_hukuman'];
     $data = Hukuman::find($name);
     if ($data) {
         return $data->nama_hukuman;
     }
     return '-';
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $hukuman = Hukuman::find($id);
     if ($hukuman->delete()) {
         return Response::json(array('success' => TRUE));
     }
 }