created_by = \Auth::user()->id; if ($calendar->is_public == 0) { $calendar->changeOwnerTo(\Auth::user()); } } } }