public static function addWheel($userId, $data) { $wheel = new Wheel(); $wheel->user_id = $userId; $wheel->attributes = $data; $wheel->save(); return $wheel; }