check() && ! $model->created_by) { $model->created_by = auth()->id(); } }); } }