Abililty to inline-add things when you are creating a new asset

This commit is contained in:
Brady Wetherington
2015-07-27 23:27:45 -07:00
parent 28304556a9
commit de8180ec70
7 changed files with 290 additions and 28 deletions
@@ -134,6 +134,9 @@ class ModelsController extends AdminController
return JsonResponse::create(["error" => "Failed validation: ".print_r($validator->messages()->all('<li>:message</li>'),true)],500);
} else {
$model->name=e(Input::get('name'));
$model->manufacturer_id=e(Input::get('manufacturer_id'));
$model->category_id=e(Input::get('category_id'));
$model->user_id=Sentry::getUser()->id;
$model->eol=0;
if($model->save()) {