de-laravelized a little