Update Model Check in Hardware Edit and move to API

This commit is contained in:
madd15
2015-03-23 08:30:50 +10:30
committed by Madd15
parent e61f254ffc
commit 7881e70afb
4 changed files with 11 additions and 13 deletions
@@ -1029,13 +1029,4 @@ class AssetsController extends AdminController
->make();
}
public function checkModel($id = null) {
if(Input::get('id')) {
$id = e(Input::get('id'));
}
$model = DB::table('models')->select('id','show_mac_address')->where('id','=',$id)->whereNull('deleted_at')->first();
return $model->show_mac_address;
}
}