Merge branch 'master' of /mnt/git/v2.tiantianxinye.365care

master
songweizong 3 years ago
commit b6a835f0cc

@ -48,8 +48,28 @@ class AdminController extends CommonController
}
}
public function store(Request $request)
public function stored($model)
{
dd($request);
if (request()->project_id) {
$model->update([
"project_ids" => implode(",", request()->project_id)]);
} else {
$model->update([
"project_ids" => null
]);
}
}
public function updated($model)
{
if (request()->project_id) {
$model->update([
"project_ids" => implode(",", request()->project_id)
]);
} else {
$model->update([
"project_ids" => null
]);
}
}
}

Loading…
Cancel
Save